diff options
Diffstat (limited to 'core/ops.rs')
-rw-r--r-- | core/ops.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ops.rs b/core/ops.rs index 59c55957b..b339b7d01 100644 --- a/core/ops.rs +++ b/core/ops.rs @@ -4,6 +4,7 @@ use crate::error::AnyError; use crate::gotham_state::GothamState; use crate::resources::ResourceTable; use crate::runtime::GetErrorClassFn; +use crate::runtime::JsRuntimeState; use crate::OpDecl; use crate::OpsTracker; use anyhow::Error; @@ -19,6 +20,7 @@ use std::ops::Deref; use std::ops::DerefMut; use std::pin::Pin; use std::rc::Rc; +use std::rc::Weak; use std::task::Context; use std::task::Poll; @@ -152,6 +154,7 @@ pub struct OpCtx { pub id: OpId, pub state: Rc<RefCell<OpState>>, pub decl: OpDecl, + pub runtime_state: Weak<RefCell<JsRuntimeState>>, } /// Maintains the resources and ops inside a JS runtime. |