mirror of https://github.com/nodejs/node.git
test: verify dynamic import call with absolute path strings
PR-URL: https://github.com/nodejs/node/pull/49275 Refs: https://github.com/nodejs/node/pull/48655 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>pull/49423/head
parent
f9a182c67c
commit
04a3567dba
|
@ -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));
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue