From a67fd3e23e6965ce0bf25e19e5467bc5cc538d23 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Mon, 26 Dec 2022 08:00:13 -0800 Subject: chore(core): Make `OpCtx` instances be realm-specific (#17174) --- core/ops.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/ops.rs') diff --git a/core/ops.rs b/core/ops.rs index 8694324ad..65b511532 100644 --- a/core/ops.rs +++ b/core/ops.rs @@ -153,8 +153,10 @@ pub fn to_op_result( pub struct OpCtx { pub id: OpId, pub state: Rc>, - pub decl: OpDecl, + pub decl: Rc, pub runtime_state: Weak>, + // Index of the current realm into `JsRuntimeState::known_realms`. + pub realm_idx: usize, } /// Maintains the resources and ops inside a JS runtime. -- cgit v1.2.3