diff options
Diffstat (limited to 'lib/internal/bootstrap/loaders.js')
-rw-r--r-- | lib/internal/bootstrap/loaders.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/internal/bootstrap/loaders.js b/lib/internal/bootstrap/loaders.js index b3072a0294..dff6ce661a 100644 --- a/lib/internal/bootstrap/loaders.js +++ b/lib/internal/bootstrap/loaders.js @@ -123,7 +123,7 @@ this.script = null; // The ContextifyScript of the module } - NativeModule._source = getBinding('natives'); + NativeModule._source = getInternalBinding('natives'); NativeModule._cache = {}; const config = getBinding('config'); @@ -256,12 +256,12 @@ // 1. `internalBinding('code_cache_hash')` must be in sync with // `internalBinding('code_cache')` (same C++ file) // 2. `internalBinding('natives_hash')` must be in sync with - // `process.binding('natives')` (same C++ file) + // `internalBinding('natives')` (same C++ file) // 3. If `internalBinding('natives_hash')` is in sync with // `internalBinding('natives_hash')`, then the (unwrapped) // code used to generate `internalBinding('code_cache')` // should be in sync with the (unwrapped) code in - // `process.binding('natives')` + // `internalBinding('natives')` // There will be, however, false positives if the wrapper used // to generate the cache is different from the one used at run time, // and the length of the wrapper somehow stays the same. |