summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index dea5e534a..7178639c5 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -324,7 +324,7 @@ mod tests {
onmessage = function(e) {
console.log("msg from main script", e.data);
if (e.data == "exit") {
- close();
+ delete window.onmessage;
return;
} else {
console.assert(e.data === "hi");