Skip to content

Commit

Permalink
fixup! module: add support for node:‑prefixed require(…) calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ExE-Boss committed Feb 8, 2021
1 parent d196d45 commit 10b08bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/helpers.js
Expand Up @@ -36,7 +36,7 @@ function loadNativeModule(filename, request, skipCompile = false) {
const mod = NativeModule.map.get(filename);
if (mod) {
debug('load native module %s', request);
if (skipCompile) {
if (!skipCompile) {
// compileForPublicLoader() throws if mod.canBeRequiredByUsers is false:
mod.compileForPublicLoader();
}
Expand Down

0 comments on commit 10b08bf

Please sign in to comment.