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: nodejs#49275
Refs: nodejs#48655
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
legendecas authored and alexfernandez committed Nov 1, 2023
1 parent bf94027 commit a3fcb51
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 a3fcb51

Please # to comment.