From c007657cfda4e07ee3070919c0b629f874ba9106 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 21 Oct 2022 08:24:22 +0530 Subject: 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. --- ops/lib.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'ops/lib.rs') 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)) }); } } -- cgit v1.2.3