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 Aug 31, 2023
1 parent f9a182c commit 04a3567
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 04a3567

Please sign in to comment.