summaryrefslogtreecommitdiff
path: root/cli/tests/inspector3.js
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-05-05 05:39:42 +0200
committerBert Belder <bertbelder@gmail.com>2020-05-05 16:12:45 +0200
commite574437922db0693e7be7a5df7c474f306e55f7b (patch)
treeb0c798efa2de29efc3555e18c807a3d0e4abfda1 /cli/tests/inspector3.js
parent6e287d951853ff38fb7002d31b9677c184ae6ffa (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.js6
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");