1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/cli/tools/repl
Nayeem Rahman 504482dadd
fix(repl): print unhandled rejections and event errors (#18878)
Fixes #8858.
Fixes #8869.

```
$ target/debug/deno
Deno 1.32.5
exit using ctrl+d, ctrl+c, or close()
REPL is running with all permissions allowed.
To specify permissions, run `deno repl` with allow flags.
> Promise.reject(new Error("bar"));
Promise { <rejected> Error: bar
    at <anonymous>:2:16 }
Uncaught (in promise) Error: bar
    at <anonymous>:2:16
> reportError(new Error("baz"));
undefined
Uncaught Error: baz
    at <anonymous>:2:13
>
2023-04-27 23:36:49 +02:00
..
cdp.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
channel.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
editor.rs chore: restore pty tests and make them run on the Linux CI (#18424) 2023-03-28 21:49:00 +00:00
mod.rs fix(repl): print unhandled rejections and event errors (#18878) 2023-04-27 23:36:49 +02:00
session.rs fix(repl): print unhandled rejections and event errors (#18878) 2023-04-27 23:36:49 +02:00