diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-10-21 08:24:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 08:24:22 +0530 |
commit | c007657cfda4e07ee3070919c0b629f874ba9106 (patch) | |
tree | d9cb64b8b2f22f9d5ea1133b40830b0abe32c10b /ops/lib.rs | |
parent | 4b6168d5e3a990e7982bcb1a8fb525f1141d8839 (diff) |
Revert realms from deno_core (#16366)
This revert has been discussed at length out-of-band (including with
@andreubotella). The realms work in impeding ongoing event loop and
performance work. We very much want to land realms but it needs to wait
until these lower-level refactors are complete. We hope to bring realms
back in a couple weeks.
Diffstat (limited to 'ops/lib.rs')
-rw-r--r-- | ops/lib.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ops/lib.rs b/ops/lib.rs index e8ea1e969..0794bdf33 100644 --- a/ops/lib.rs +++ b/ops/lib.rs @@ -215,7 +215,7 @@ fn codegen_v8_async( quote! { let result = match result { Ok(fut) => fut.await, - Err(e) => return (context, promise_id, op_id, #core::_ops::to_op_result::<()>(get_class, Err(e))), + Err(e) => return (promise_id, op_id, #core::_ops::to_op_result::<()>(get_class, Err(e))), }; } } else { @@ -258,16 +258,11 @@ fn codegen_v8_async( state.get_error_class_fn }; - let context = { - let local = scope.get_current_context(); - #core::v8::Global::new(scope, local) - }; - #pre_result #core::_ops::queue_async_op(state, scope, #deferred, async move { let result = #result_fut #result_wrapper - (context, promise_id, op_id, #core::_ops::to_op_result(get_class, result)) + (promise_id, op_id, #core::_ops::to_op_result(get_class, result)) }); } } |