aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Ai Hoshino <ambiguous404@gmail.com> 2023-09-23 09:40:06 +0800
committerGravatar GitHub <noreply@github.com> 2023-09-22 18:40:06 -0700
commit1445775d64df9f45ea25ae64fa47ee3c0d321baa (patch)
tree6b9e853f2a0dae12b0f54ec989d72a2139444942 /test
parentfeefaf00d799e152e1c816e7cd8c8beb70c7f074 (diff)
downloadbun-1445775d64df9f45ea25ae64fa47ee3c0d321baa.tar.gz
bun-1445775d64df9f45ea25ae64fa47ee3c0d321baa.tar.zst
bun-1445775d64df9f45ea25ae64fa47ee3c0d321baa.zip
fix(runtime): exclude unevaluated module in `require.cache` (#5903)
Close: #5898
Diffstat (limited to 'test')
-rw-r--r--test/cli/run/require-cache-bug-5188.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cli/run/require-cache-bug-5188.js b/test/cli/run/require-cache-bug-5188.js
index cb9bd2099..5b14e6b4c 100644
--- a/test/cli/run/require-cache-bug-5188.js
+++ b/test/cli/run/require-cache-bug-5188.js
@@ -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"));