diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-20 14:05:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-20 14:05:13 -0400 |
commit | cd53ab5427811bddbed1c30d3733e1df87bb23f9 (patch) | |
tree | 0e2ea8e1b45f2d1d4acd20b666ae1d52d40940c6 /cli/tests/testdata | |
parent | d78db7c0910aded010c2faee9a8c0f128f513985 (diff) |
refactor(ext/node): untangle dependencies between js files (#18284)
Moving some code around in `ext/node` is it's a bit better well defined
and makes it possible for others to embed it.
I expect to see no difference in startup perf with this change.
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r-- | cli/tests/testdata/commonjs/init.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cli/tests/testdata/commonjs/init.js b/cli/tests/testdata/commonjs/init.js deleted file mode 100644 index 77992a0ad..000000000 --- a/cli/tests/testdata/commonjs/init.js +++ /dev/null @@ -1,10 +0,0 @@ -import { fromFileUrl } from "../../../../test_util/std/path/mod.ts"; - -const DENO_NODE_COMPAT_URL = Deno.env.get("DENO_NODE_COMPAT_URL"); -const moduleAllUrl = `${DENO_NODE_COMPAT_URL}node/module_all.ts`; -let moduleName = import.meta.resolve(Deno.args[0]); -moduleName = fromFileUrl(moduleName); - -const moduleAll = await import(moduleAllUrl); -Deno[Deno.internal].node.initialize(moduleAll.default); -Deno[Deno.internal].require.Module._load(moduleName, null, true); |