js: mark Event constructor as native for stealth compatibility

This commit is contained in:
yzyf1312 committed 2026-06-14 22:38:04 +08:00
1 parent af2f89a03e
commit 37b33c1109
1 file changed
+1
+1
View File
@@ -4016,6 +4016,7 @@ globalThis.Event = class Event {
return path;
}
};
_markNative(Event);
globalThis.CustomEvent = class extends Event {
constructor(t,o={}) { super(t,o);this.detail=o.detail; }
// Legacy DOM Level 2 init; some libraries (Starbucks China bundle, older