Skip to content

Commit 1122018

Browse files
Update test/module-hooks/test-module-hooks-builtin-require.js
Co-authored-by: Joyee Cheung <[email protected]>
1 parent 2f24905 commit 1122018

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/module-hooks/test-module-hooks-builtin-require.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
'use strict';
22

3+
4+
// This tests that when builtins that demand the `node:` prefix are
5+
// required, the URL that gets passed to the load hook is still
6+
// the one with the `node:` prefix, and the one with the prefix
7+
// stripped for internal lookups don't get passed into the hooks.
8+
39
const common = require('../common');
410
const { registerHooks } = require('module');
511

0 commit comments

Comments
 (0)