1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00

refactor(core/runtime): clean up extra type cast (#15539)

This commit is contained in:
Geert-Jan Zwiers 2022-08-23 05:54:17 +02:00 committed by GitHub
parent e34260c5b0
commit ecf3b51fd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1942,7 +1942,7 @@ impl JsRuntime {
let mut args = vec![]; let mut args = vec![];
for (promise_id, resp) in results.into_iter() { for (promise_id, resp) in results.into_iter() {
args.push(v8::Integer::new(scope, promise_id as i32).into()); args.push(v8::Integer::new(scope, promise_id).into());
args.push(resp.to_v8(scope).unwrap()); args.push(resp.to_v8(scope).unwrap());
} }