mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(repl): don't terminate on unhandled error events (#15548)
This commit is contained in:
parent
658d2cdff2
commit
a74b2ecf37
8 changed files with 76 additions and 44 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue