Skip to content

Commit

Permalink
fixup! module: do less CJS module loader initialization at run time
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Mar 29, 2023
1 parent 24a2b66 commit 4d43578
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/internal/bootstrap/loaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,18 +185,18 @@ let internalBinding;
};
}

const getOwn = (target, property, receiver) => {
return ObjectPrototypeHasOwnProperty(target, property) ?
ReflectGet(target, property, receiver) :
undefined;
};

const loaderId = 'internal/bootstrap/loaders';
const {
builtinIds,
compileFunction,
} = internalBinding('builtins');

const getOwn = (target, property, receiver) => {
return ObjectPrototypeHasOwnProperty(target, property) ?
ReflectGet(target, property, receiver) :
undefined;
};

const publicBuiltinIds = builtinIds
.filter((id) =>
!StringPrototypeStartsWith(id, 'internal/') &&
Expand Down

0 comments on commit 4d43578

Please sign in to comment.