diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-05 18:42:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 22:42:52 +0000 |
commit | 1ab16e2426819af2c534e8a99b98f244626de512 (patch) | |
tree | c7decbf152460c3d74f176363fcf708ed428c778 /ext/node/polyfills/module.js | |
parent | 5f34c9be91a42e9087536d63b7e319439ceba756 (diff) |
refactor(core): InternalModuleLoader checks if all files were used (#18005)
This commit changes "InternalModuleLoader" from "deno_core" to
store a list of used modules during snapshotting. If a module was not
used during snapshotting "InternalModuleLoader" will panic in its "Drop"
handler signaling to the embedder that they made a mistake somewhere.
Diffstat (limited to 'ext/node/polyfills/module.js')
-rw-r--r-- | ext/node/polyfills/module.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/node/polyfills/module.js b/ext/node/polyfills/module.js deleted file mode 100644 index 2b7c20e26..000000000 --- a/ext/node/polyfills/module.js +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. - -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; -export const _initPaths = m._initPaths; -export const _load = m._load; -export const _nodeModulePaths = m._nodeModulePaths; -export const _pathCache = m._pathCache; -export const _preloadModules = m._preloadModules; -export const _resolveFilename = m._resolveFilename; -export const _resolveLookupPaths = m._resolveLookupPaths; -export const builtinModules = m.builtinModules; -export const createRequire = m.createRequire; -export const globalPaths = m.globalPaths; -export const Module = m.Module; -export const wrap = m.wrap; -export default m; |