diff options
Diffstat (limited to 'core/ops.rs')
-rw-r--r-- | core/ops.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<R: Serialize + 'static>( pub struct OpCtx { pub id: OpId, pub state: Rc<RefCell<OpState>>, - pub decl: OpDecl, + pub decl: Rc<OpDecl>, pub runtime_state: Weak<RefCell<JsRuntimeState>>, + // Index of the current realm into `JsRuntimeState::known_realms`. + pub realm_idx: usize, } /// Maintains the resources and ops inside a JS runtime. |