summaryrefslogtreecommitdiff
path: root/lib/internal/bootstrap/cache.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/bootstrap/cache.js')
-rw-r--r--lib/internal/bootstrap/cache.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/internal/bootstrap/cache.js b/lib/internal/bootstrap/cache.js
index bc0a01cf67..725425b2ce 100644
--- a/lib/internal/bootstrap/cache.js
+++ b/lib/internal/bootstrap/cache.js
@@ -6,7 +6,9 @@
// cannot be tampered with even with --expose-internals.
const { NativeModule } = require('internal/bootstrap/loaders');
-const { source, compileCodeCache } = internalBinding('native_module');
+const {
+ source, getCodeCache, compileFunction
+} = internalBinding('native_module');
const { hasTracing } = process.binding('config');
const depsModule = Object.keys(source).filter(
@@ -69,6 +71,7 @@ module.exports = {
(key) => !cannotUseCache.includes(key)
),
getSource(id) { return source[id]; },
- getCodeCache: compileCodeCache,
+ getCodeCache,
+ compileFunction,
cannotUseCache
};