From 97b58d8ece5b83668acae0c14e3c0e4a25084216 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Fri, 15 Dec 2023 00:29:56 +0100 Subject: [PATCH] fixup! module: move the CJS exports cache to internal/modules/cjs/loader --- lib/internal/modules/cjs/loader.js | 1 - lib/internal/modules/esm/loader.js | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index a1ebb0652cd7529..44abacb41a34306 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -157,7 +157,6 @@ const { isProxy, } = require('internal/util/types'); -const { kEvaluated } = internalBinding('module_wrap'); const isWindows = process.platform === 'win32'; const relativeResolveCache = { __proto__: null }; diff --git a/lib/internal/modules/esm/loader.js b/lib/internal/modules/esm/loader.js index f1daa719e59b974..c0e3cdb36e1c02b 100644 --- a/lib/internal/modules/esm/loader.js +++ b/lib/internal/modules/esm/loader.js @@ -11,7 +11,6 @@ const { JSONStringify, ObjectSetPrototypeOf, RegExpPrototypeSymbolReplace, - SafeWeakMap, encodeURIComponent, hardenRegExp, } = primordials;