Skip to content

Commit 136b877

Browse files
committed
module: skip check builtin module on validateLoad
1 parent 68bac3d commit 136b877

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/internal/modules/customization_hooks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ function validateLoad(url, context, result) {
270270
// the builtins even though the default load step only provides null as source,
271271
// and any source content for builtins provided by the user hooks are ignored.
272272
if (!StringPrototypeStartsWith(url, 'node:') &&
273+
!BuiltinModule.isBuiltin(url) &&
273274
typeof result.source !== 'string' &&
274275
!isAnyArrayBuffer(source) &&
275276
!isArrayBufferView(source)) {

0 commit comments

Comments
 (0)