Skip to content

Commit 6740f3c

Browse files
legendecasUlisesGascon
authored andcommitted
test: verify dynamic import call with absolute path strings
PR-URL: #49275 Refs: #48655 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent e5f3a69 commit 6740f3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/es-module/test-esm-dynamic-import.js

+3
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,7 @@ function expectFsNamespace(result) {
6666
'ERR_UNSUPPORTED_ESM_URL_SCHEME',
6767
msg);
6868
}
69+
// If the specifier is an origin-relative URL, it should
70+
// be treated as a file: URL.
71+
expectOkNamespace(import(targetURL.pathname));
6972
})();

0 commit comments

Comments
 (0)