Skip to content

Commit

Permalink
test: verify dynamic import call with absolute path strings
Browse files Browse the repository at this point in the history
PR-URL: #49275
Refs: #48655
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
legendecas authored and UlisesGascon committed Sep 10, 2023
1 parent e5f3a69 commit 6740f3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/es-module/test-esm-dynamic-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@ function expectFsNamespace(result) {
'ERR_UNSUPPORTED_ESM_URL_SCHEME',
msg);
}
// If the specifier is an origin-relative URL, it should
// be treated as a file: URL.
expectOkNamespace(import(targetURL.pathname));
})();

0 comments on commit 6740f3c

Please sign in to comment.