mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
feat(ext/web): add globalThis.reportError() (#13799)
This commit is contained in:
parent
a64e63c361
commit
c30d95f2e3
10 changed files with 93 additions and 17 deletions
|
@ -638,7 +638,8 @@ impl WebWorker {
|
|||
v8::Local::<v8::Value>::new(scope, poll_for_messages_fn);
|
||||
let fn_ = v8::Local::<v8::Function>::try_from(poll_for_messages).unwrap();
|
||||
let undefined = v8::undefined(scope);
|
||||
fn_.call(scope, undefined.into(), &[]).unwrap();
|
||||
// This call may return `None` if worker is terminated.
|
||||
fn_.call(scope, undefined.into(), &[]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue