diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2023-03-09 13:09:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 04:09:40 +0000 |
commit | 521cb4ca9b9b02f7ba3150338d5f3c4b035aab8d (patch) | |
tree | e46e4efc49d1dc0ece4917e65f006a6e9a8daffd | |
parent | 4e8edafb398f52499f9e975ffb8765cdbd268f34 (diff) |
fix(rumtime): Add `Deno.` prefix for registered symbols (#18086)
-rw-r--r-- | ext/web/02_event.js | 2 | ||||
-rw-r--r-- | runtime/js/30_os.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/02_event.js b/ext/web/02_event.js index dd8b4f57b..f354bf182 100644 --- a/ext/web/02_event.js +++ b/ext/web/02_event.js @@ -1062,7 +1062,7 @@ class EventTarget { // This prevents the recursive dispatches of unload events. // See https://github.com/denoland/deno/issues/9201. if (event.type === "unload" && self === globalThis_) { - globalThis_[SymbolFor("isUnloadDispatched")] = true; + globalThis_[SymbolFor("Deno.isUnloadDispatched")] = true; } const { listeners } = self[eventTargetData]; diff --git a/runtime/js/30_os.js b/runtime/js/30_os.js index 76325cfff..3af5803ad 100644 --- a/runtime/js/30_os.js +++ b/runtime/js/30_os.js @@ -61,7 +61,7 @@ function exit(code) { } // Dispatches `unload` only when it's not dispatched yet. - if (!globalThis[SymbolFor("isUnloadDispatched")]) { + if (!globalThis[SymbolFor("Deno.isUnloadDispatched")]) { // Invokes the `unload` hooks before exiting // ref: https://github.com/denoland/deno/issues/3603 windowDispatchEvent(new Event("unload")); |