mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
Fix silent error, add custom panic handler (#2098)
This is to work around Tokio's panic recovery feature. Ref https://github.com/tokio-rs/tokio/issues/495 Ref https://github.com/tokio-rs/tokio/issues/209 Ref https://github.com/denoland/deno/issues/1311 Fixes #2097
This commit is contained in:
parent
b413cd5afd
commit
c7e1f8fabd
3 changed files with 19 additions and 2 deletions
|
@ -324,7 +324,7 @@ mod tests {
|
|||
onmessage = function(e) {
|
||||
console.log("msg from main script", e.data);
|
||||
if (e.data == "exit") {
|
||||
close();
|
||||
delete window.onmessage;
|
||||
return;
|
||||
} else {
|
||||
console.assert(e.data === "hi");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue