summaryrefslogtreecommitdiff
path: root/ops/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ops/lib.rs')
-rw-r--r--ops/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/ops/lib.rs b/ops/lib.rs
index 7fb377420..c16893366 100644
--- a/ops/lib.rs
+++ b/ops/lib.rs
@@ -221,7 +221,7 @@ fn codegen_v8_async(
quote! {
let result = match result {
Ok(fut) => fut.await,
- Err(e) => return (promise_id, op_id, #core::_ops::to_op_result::<()>(get_class, Err(e))),
+ Err(e) => return (realm_idx, promise_id, op_id, #core::_ops::to_op_result::<()>(get_class, Err(e))),
};
}
} else {
@@ -240,6 +240,7 @@ fn codegen_v8_async(
as *const #core::_ops::OpCtx)
};
let op_id = ctx.id;
+ let realm_idx = ctx.realm_idx;
let promise_id = args.get(0);
let promise_id = #core::v8::Local::<#core::v8::Integer>::try_from(promise_id)
@@ -267,7 +268,7 @@ fn codegen_v8_async(
#core::_ops::queue_async_op(ctx, scope, #deferred, async move {
let result = #result_fut
#result_wrapper
- (promise_id, op_id, #core::_ops::to_op_result(get_class, result))
+ (realm_idx, promise_id, op_id, #core::_ops::to_op_result(get_class, result))
});
},
argc,