summaryrefslogtreecommitdiff
path: root/cli/util/file_watcher.rs
diff options
context:
space:
mode:
authorud2 <sjx233@qq.com>2023-05-08 06:27:59 +0800
committerGitHub <noreply@github.com>2023-05-08 00:27:59 +0200
commit40987178c4f9baf54599b502f943be76f42d6f85 (patch)
tree30892bb0a95bf68f48b95ef1b90bc94afb169fc1 /cli/util/file_watcher.rs
parent7e1ae655720de72fd555bb1746bb35f5d17f39f6 (diff)
fix(core): always report the first error on unhandled rejection (#18992)
The root cause of denoland/deno_std#3320, I believe, is that `pending_promise_rejections` is a `HashMap` whose entries are in arbitrary order, and as a result either of the two errors (`AddrInUse` and `TypeError`) may be selected when determining which one to report. I changed the field to a `VecDeque` so that the first error (`AddrInUse` in this case) is always selected.
Diffstat (limited to 'cli/util/file_watcher.rs')
0 files changed, 0 insertions, 0 deletions