/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/run/replace_self/replace_self.js
21 строка
528 B
Mohammad Sulaiman
chore: deprecate run itests (#26444)
05 ноя 2024, 09:39
Не верифицирован
05 ноя 2024, 09:39
89f0b79
Код
Авторство
О чём код?
// Test that setting `self` in the main thread to some other value doesn't break // the world, in particular for events fired on the global scope. // deno-lint-ignore no-global-assign self = null; addEventListener("load", () => { console.log("load event (event listener)"); }); addEventListener("unload", () => { console.log("unload event (event listener)"); }); globalThis.onload = () => { console.log("load event (event handler)"); }; globalThis.onunload = () => { console.log("unload event (event handler)"); };