summaryrefslogtreecommitdiff
path: root/core/02_error.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/02_error.js')
-rw-r--r--core/02_error.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/02_error.js b/core/02_error.js
index b29dc9b4e..c082486f4 100644
--- a/core/02_error.js
+++ b/core/02_error.js
@@ -14,8 +14,15 @@
ArrayPrototypePush,
ArrayPrototypeMap,
ArrayPrototypeJoin,
+ SymbolFor,
} = window.__bootstrap.primordials;
+ const key = SymbolFor("02_error.js");
+ if (globalThis.__bootstrap[key]) {
+ return;
+ }
+ globalThis.__bootstrap[key] = true;
+
// Keep in sync with `cli/fmt_errors.rs`.
function formatLocation(cse) {
if (cse.isNative) {