Skip to content

Commit 4d43578

Browse files
committed
fixup! module: do less CJS module loader initialization at run time
1 parent 24a2b66 commit 4d43578

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/internal/bootstrap/loaders.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,18 +185,18 @@ let internalBinding;
185185
};
186186
}
187187

188-
const getOwn = (target, property, receiver) => {
189-
return ObjectPrototypeHasOwnProperty(target, property) ?
190-
ReflectGet(target, property, receiver) :
191-
undefined;
192-
};
193-
194188
const loaderId = 'internal/bootstrap/loaders';
195189
const {
196190
builtinIds,
197191
compileFunction,
198192
} = internalBinding('builtins');
199193

194+
const getOwn = (target, property, receiver) => {
195+
return ObjectPrototypeHasOwnProperty(target, property) ?
196+
ReflectGet(target, property, receiver) :
197+
undefined;
198+
};
199+
200200
const publicBuiltinIds = builtinIds
201201
.filter((id) =>
202202
!StringPrototypeStartsWith(id, 'internal/') &&

0 commit comments

Comments
 (0)