summaryrefslogtreecommitdiff
path: root/cli/inspector.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-07-18 22:32:11 +0200
committerBert Belder <bertbelder@gmail.com>2020-07-19 01:47:45 +0200
commitfaa64edaf409757549a7df85812f6ea4f368051c (patch)
tree4be5cd868f3d49c5ea928b45bf46cf9c10f64fae /cli/inspector.rs
parentaebea6bd24dc1788c6db2f58204177af1c5d2dd6 (diff)
Upgrade to rusty_v8 0.7.0 (#6801)
Diffstat (limited to 'cli/inspector.rs')
-rw-r--r--cli/inspector.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/inspector.rs b/cli/inspector.rs
index 6c08aad24..b4d377cef 100644
--- a/cli/inspector.rs
+++ b/cli/inspector.rs
@@ -415,7 +415,11 @@ impl DenoInspector {
});
// Tell the inspector about the global context.
- let context = core_state.global_context.get(scope).unwrap();
+ let context = core_state
+ .global_context
+ .as_ref()
+ .map(|context| v8::Local::new(scope, context))
+ .unwrap();
let context_name = v8::inspector::StringView::from(&b"global context"[..]);
self_.context_created(context, Self::CONTEXT_GROUP_ID, context_name);