diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-09-02 11:43:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 12:43:39 +0200 |
commit | a74b2ecf379ddb1ff03c61d4e876153d7b4c45d2 (patch) | |
tree | 47b3fbe18ba35d59b4fb1062a53544f98656138a /runtime/worker.rs | |
parent | 658d2cdff22646010915dc1f4a128de6c42a9f79 (diff) |
fix(repl): don't terminate on unhandled error events (#15548)
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index e0f54e09d..79b1b5537 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -294,6 +294,7 @@ impl MainWorker { self .js_runtime .inspector() + .borrow_mut() .wait_for_session_and_break_on_next_statement() } } @@ -301,8 +302,7 @@ impl MainWorker { /// Create new inspector session. This function panics if Worker /// was not configured to create inspector. pub async fn create_inspector_session(&mut self) -> LocalInspectorSession { - let inspector = self.js_runtime.inspector(); - inspector.create_local_session() + self.js_runtime.inspector().borrow().create_local_session() } pub fn poll_event_loop( |