Skip to content

Commit

Permalink
fixup! src: simplify NativeModule caching and remove redundant data
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Feb 6, 2019
1 parent 7dd4e41 commit c5a7fed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/bootstrap/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ if (!process.versions.openssl) {

const cachableBuiltins = [];
for (const id of NativeModule.map.keys()) {
if (id.startsWith('internal/deps')) {
if (id.startsWith('internal/deps') ||
id.startsWith('v8/') || id.startsWith('node-inspect/')) {
cannotUseCache.push(id);
}
if (!cannotUseCache.includes(id)) {
Expand Down

0 comments on commit c5a7fed

Please sign in to comment.