From faa64edaf409757549a7df85812f6ea4f368051c Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Sat, 18 Jul 2020 22:32:11 +0200 Subject: Upgrade to rusty_v8 0.7.0 (#6801) --- cli/inspector.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/inspector.rs') 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); -- cgit v1.2.3