summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ops.rs b/core/ops.rs
index 806059ed6..098de8c93 100644
--- a/core/ops.rs
+++ b/core/ops.rs
@@ -91,6 +91,7 @@ where
}
}
+pub type RealmIdx = usize;
pub type PromiseId = i32;
pub type OpAsyncFuture = OpCall<(PromiseId, OpId, OpResult)>;
pub type OpFn =
@@ -156,7 +157,7 @@ pub struct OpCtx {
pub decl: Rc<OpDecl>,
pub runtime_state: Weak<RefCell<JsRuntimeState>>,
// Index of the current realm into `JsRuntimeState::known_realms`.
- pub realm_idx: usize,
+ pub realm_idx: RealmIdx,
}
/// Maintains the resources and ops inside a JS runtime.