Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! lib: fix code cache generation
  • Loading branch information
joyeecheung committed Oct 29, 2018
commit c95e31e09ba93993082459acd9ae4ebfff7fbc06
5 changes: 5 additions & 0 deletions lib/internal/bootstrap/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ const cannotUseCache = [
'internal/bootstrap/node'
].concat(depsModule);

if (process.config.variables.v8_enable_inspector !== 1) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be worthwhile including a quick comment with these that says why they cannot use the cache, just so it's clear to folks coming along later.

cannotUseCache.push('inspector');
cannotUseCache.push('internal/util/inspector');
}

module.exports = {
cachableBuiltins: Object.keys(NativeModule._source).filter(
(key) => !cannotUseCache.includes(key)
Expand Down