Fix typecheck

This commit is contained in:
Colin McDonnell
2023-02-28 19:46:18 -08:00
parent 1da8045ce4
commit 931f23d360
2 changed files with 4 additions and 1 deletions

View File

@@ -275,7 +275,7 @@ const fixture = [
}),
() => require("events"),
() => {
return new import.meta.require("events").EventEmitter();
return new (import.meta.require("events").EventEmitter)();
},
async () => await import("node:assert"),
async () => await import("./empty.js"),

View File

@@ -18,8 +18,11 @@
"examples/macros",
"test/bun.js/solid-dom-fixtures",
"test/bun.js/bundled",
"src/deps",
"bun-webkit",
// JavaScriptCore builtins use a non-standard "@" symbol to indicate a private identifier which no other tool supports
"src/bun.js/builtins",
"src/bun.js/WebKit",
"src/api/demo",
"test/snapshots",
"test/snapshots-no-hmr",