summaryrefslogtreecommitdiff
path: root/cli/tests/immediately_close_worker.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-11-27 14:19:24 +0100
committerGitHub <noreply@github.com>2020-11-27 14:19:24 +0100
commit22f951aa67c5b677d156ec338f71714cf2d4ddb2 (patch)
tree58537dffb4aa0f3c3b2a348c99466cb89919c835 /cli/tests/immediately_close_worker.js
parent28869a632d190dc29d78738bc5e90eadf99bc824 (diff)
fix: panic in worker when closing at top level (#8510)
Fixes panic occurring in worker when "self.close()" is called at the top level, ie. worker shuts down while module evaluation promise hasn't yet resolved.
Diffstat (limited to 'cli/tests/immediately_close_worker.js')
-rw-r--r--cli/tests/immediately_close_worker.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/tests/immediately_close_worker.js b/cli/tests/immediately_close_worker.js
new file mode 100644
index 000000000..8fd27343a
--- /dev/null
+++ b/cli/tests/immediately_close_worker.js
@@ -0,0 +1 @@
+self.close();