diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-05-05 05:39:42 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-05-05 16:12:45 +0200 |
commit | e574437922db0693e7be7a5df7c474f306e55f7b (patch) | |
tree | b0c798efa2de29efc3555e18c807a3d0e4abfda1 /cli/tests/inspector3.js | |
parent | 6e287d951853ff38fb7002d31b9677c184ae6ffa (diff) |
Fix inspector hanging when task budget is exceeded (#5083)
The issue is solved by proxying websocket messages over a pair of
`futures::mpsc::unbounded` channels. As these are are implemented in
the 'futures' crate, they can't participate in Tokio's cooperative
task yielding.
Diffstat (limited to 'cli/tests/inspector3.js')
-rw-r--r-- | cli/tests/inspector3.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/inspector3.js b/cli/tests/inspector3.js new file mode 100644 index 000000000..de079a1bc --- /dev/null +++ b/cli/tests/inspector3.js @@ -0,0 +1,6 @@ +for (let i = 0; i < 128; i++) { + console.log(i); + debugger; +} +await new Promise((res, _) => setTimeout(res, 100)); +console.log("done"); |