summaryrefslogtreecommitdiff
path: root/ops/optimizer_tests/issue16934.out
diff options
context:
space:
mode:
Diffstat (limited to 'ops/optimizer_tests/issue16934.out')
-rw-r--r--ops/optimizer_tests/issue16934.out29
1 files changed, 9 insertions, 20 deletions
diff --git a/ops/optimizer_tests/issue16934.out b/ops/optimizer_tests/issue16934.out
index 68f59ef43..e92510038 100644
--- a/ops/optimizer_tests/issue16934.out
+++ b/ops/optimizer_tests/issue16934.out
@@ -50,8 +50,6 @@ impl send_stdin {
&*(deno_core::v8::Local::<deno_core::v8::External>::cast(args.data()).value()
as *const deno_core::_ops::OpCtx)
};
- let op_id = ctx.id;
- let realm_idx = ctx.realm_idx;
let promise_id = args.get(0);
let promise_id = deno_core::v8::Local::<
deno_core::v8::Integer,
@@ -79,28 +77,19 @@ impl send_stdin {
);
}
};
- let get_class = {
- let state = ::std::cell::RefCell::borrow(&ctx.state);
- state.tracker.track_async(op_id);
- state.get_error_class_fn
- };
+ let fut = deno_core::_ops::map_async_op1(
+ ctx,
+ Self::call(
+ compile_error!("mutable opstate is not supported in async ops"),
+ arg_0,
+ ),
+ );
let maybe_response = deno_core::_ops::queue_async_op(
ctx,
scope,
false,
- async move {
- let result = Self::call(
- compile_error!("mutable opstate is not supported in async ops"),
- arg_0,
- )
- .await;
- (
- realm_idx,
- promise_id,
- op_id,
- deno_core::_ops::to_op_result(get_class, result),
- )
- },
+ promise_id,
+ fut,
);
if let Some(response) = maybe_response {
rv.set(response);