diff options
Diffstat (limited to 'ext/node/module_es_shim.js')
-rw-r--r-- | ext/node/module_es_shim.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/node/module_es_shim.js b/ext/node/module_es_shim.js index f32006b4a..2b7c20e26 100644 --- a/ext/node/module_es_shim.js +++ b/ext/node/module_es_shim.js @@ -1,6 +1,7 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -const m = Deno[Deno.internal].require.Module; +const internals = globalThis.__bootstrap.internals; +const m = internals.require.Module; export const _cache = m._cache; export const _extensions = m._extensions; export const _findPath = m._findPath; |