diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-07 15:56:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 15:56:52 +0200 |
commit | 83f6def3c62e7f336516d59881e8f9f7846d9024 (patch) | |
tree | a47fe0c185f2ca5f623b861f31a0b395616e6e34 /cli | |
parent | c226d3af2572c93af21f5a3261ede4dd8855685e (diff) |
refactor(core): JsRuntime doesn't defer to OwnedIsolate (#7853)
Remove Deref and DeferMut implementations for JsRuntime.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/inspector.rs | 2 | ||||
-rw-r--r-- | cli/worker.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/inspector.rs b/cli/inspector.rs index 4a6fe7a14..6992e9855 100644 --- a/cli/inspector.rs +++ b/cli/inspector.rs @@ -394,7 +394,7 @@ impl DenoInspector { server: Option<Arc<InspectorServer>>, ) -> Box<Self> { let context = isolate.global_context(); - let scope = &mut v8::HandleScope::new(&mut **isolate); + let scope = &mut v8::HandleScope::new(isolate.v8_isolate()); let (new_websocket_tx, new_websocket_rx) = mpsc::unbounded::<WebSocketProxy>(); diff --git a/cli/worker.rs b/cli/worker.rs index 47e5c4761..0a50b5624 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -428,7 +428,7 @@ impl WebWorker { ); let terminated = Arc::new(AtomicBool::new(false)); - let isolate_handle = worker.isolate.thread_safe_handle(); + let isolate_handle = worker.isolate.v8_isolate().thread_safe_handle(); let (terminate_tx, terminate_rx) = mpsc::channel::<()>(1); let handle = WebWorkerHandle { |