mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213)
This commit is contained in:
parent
5828ce7675
commit
dbcbf53ab5
16 changed files with 74 additions and 49 deletions
|
@ -4,12 +4,14 @@
|
|||
((window) => {
|
||||
const core = window.Deno.core;
|
||||
const ops = core.ops;
|
||||
const { Event } = window.__bootstrap.event;
|
||||
const { EventTarget } = window.__bootstrap.eventTarget;
|
||||
const {
|
||||
Error,
|
||||
SymbolFor,
|
||||
} = window.__bootstrap.primordials;
|
||||
|
||||
const windowDispatchEvent = window.dispatchEvent.bind(window);
|
||||
const windowDispatchEvent = EventTarget.prototype.dispatchEvent.bind(window);
|
||||
|
||||
function loadavg() {
|
||||
return ops.op_loadavg();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue