deno/cli/tests/testdata/delete_window.js
Bartek Iwańczuk b10563cb20
fix(runtime): don't crash when window is deleted (#13392)
This commit fixes an error when user deletes "window" global JS
variable. Instead of relying on "window" or "globalThis" to dispatch
"load" and "unload" events, we are default to global scope of the
worker.
2022-01-18 00:13:14 +01:00

2 lines
39 B
JavaScript

console.log(delete globalThis.window);