diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2022-08-23 05:54:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 09:24:17 +0530 |
commit | ecf3b51fd93c36f10e7ce53e961bdeca449a955f (patch) | |
tree | b11667eba487af18dce6f1a167415ce2f6a17ed7 | |
parent | e34260c5b05f2a93f695d807b7cb54a50605885e (diff) |
refactor(core/runtime): clean up extra type cast (#15539)
-rw-r--r-- | core/runtime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 4c8bf0db5..7cb566712 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -1942,7 +1942,7 @@ impl JsRuntime { let mut args = vec![]; 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()); } |