mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
fix(runtime): exclude unevaluated module in require.cache (#5903)
Close: #5898
This commit is contained in:
@@ -9,6 +9,7 @@ ok(!Object.getOwnPropertyNames(require.cache).includes("bad"));
|
||||
require("msgpackr-extract");
|
||||
|
||||
strictEqual(require.cache["extract"], undefined);
|
||||
ok(!("extract" in require.cache)); // https://github.com/oven-sh/bun/issues/5898
|
||||
ok(!Object.hasOwnProperty.call(require.cache, "extract"));
|
||||
ok(!Object.getOwnPropertyNames(require.cache).includes("extract"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user