diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-10-26 17:07:50 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 17:07:50 +0530 |
commit | 851db03a6eb25ef899437c1393745f7fe9d15585 (patch) | |
tree | 3eed432d260cc2d58fae6d0eca114e57c0426a91 /core/ops_builtin_v8.rs | |
parent | 4d166e638f387db45d9ae1fe967db6a18ff7cc03 (diff) |
perf(core): do not drive JsInspector by default (#16410)
Part of https://github.com/denoland/deno/pull/16377
Diffstat (limited to 'core/ops_builtin_v8.rs')
-rw-r--r-- | core/ops_builtin_v8.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/ops_builtin_v8.rs b/core/ops_builtin_v8.rs index 818ba03ee..7c7975489 100644 --- a/core/ops_builtin_v8.rs +++ b/core/ops_builtin_v8.rs @@ -766,6 +766,10 @@ fn op_dispatch_exception( .dispatched_exceptions .push_front(v8::Global::new(scope, exception.v8_value)); // Only terminate execution if there are no inspector sessions. + if state.inspector.is_none() { + scope.terminate_execution(); + return; + } match state.inspector().try_borrow() { Ok(inspector) if !inspector.has_active_sessions() => { scope.terminate_execution(); |