summaryrefslogtreecommitdiff
path: root/runtime/js/11_workers.js
diff options
context:
space:
mode:
author李瑞丰 <li15227870916@gmail.com>2021-09-25 01:07:22 +0800
committerGitHub <noreply@github.com>2021-09-25 02:07:22 +0900
commit46245b830a24930ab36f8ce2831325cdd1da17d3 (patch)
treec96c2a69a30120d2cdf639b72a3bace836417151 /runtime/js/11_workers.js
parent9705efd419ffa05b0d88e788e0ceb77e38078449 (diff)
fix(ext/webidl): correctly apply [SymbolToStringTag] to interfaces (#11851)
Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'runtime/js/11_workers.js')
-rw-r--r--runtime/js/11_workers.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js
index c9bfc172a..d7d153098 100644
--- a/runtime/js/11_workers.js
+++ b/runtime/js/11_workers.js
@@ -10,6 +10,7 @@
StringPrototypeStartsWith,
String,
SymbolIterator,
+ SymbolToStringTag,
} = window.__bootstrap.primordials;
const webidl = window.__bootstrap.webidl;
const { URL } = window.__bootstrap.url;
@@ -351,6 +352,8 @@
hostTerminateWorker(this.#id);
}
}
+
+ [SymbolToStringTag] = "Worker";
}
defineEventHandler(Worker.prototype, "error");