experiment(ext/web): Don't expose event classes during the bootstrap phase (#16213)

This commit is contained in:
Andreu Botella 2022-10-24 16:14:17 +02:00 committed by GitHub
parent 5828ce7675
commit dbcbf53ab5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 74 additions and 49 deletions

View file

@ -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();