summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/node_builtin_modules/mod.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-02-14 16:48:27 +0100
committerGitHub <noreply@github.com>2023-02-14 16:48:27 +0100
commit1d00bbe47e2ca14e2d2151518e02b2324461a065 (patch)
treee099d0b4d872fe1af979842e1dcf929246836e77 /cli/tests/testdata/run/node_builtin_modules/mod.js
parentb3c85c3548ac3c56f0cf0f3ace36a6f3de3bf823 (diff)
fix: loading built-in Node modules embedded in the binary (#17777)
Fixes bug introduced in ed3a7ce2f719e64e59cfebb3d131a05a1694523b that caused errors when loading built-in Node modules, when using "deno_graph".
Diffstat (limited to 'cli/tests/testdata/run/node_builtin_modules/mod.js')
-rw-r--r--cli/tests/testdata/run/node_builtin_modules/mod.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/node_builtin_modules/mod.js b/cli/tests/testdata/run/node_builtin_modules/mod.js
index 70e39be56..4d3f48695 100644
--- a/cli/tests/testdata/run/node_builtin_modules/mod.js
+++ b/cli/tests/testdata/run/node_builtin_modules/mod.js
@@ -1,2 +1,4 @@
+import { createRequire } from "node:module";
+console.log(createRequire);
import process from "node:process";
console.log(process.version);