mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
8ac9aef8b1
Fixes #40305 PR-URL: https://github.com/nodejs/node/pull/40325 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
21 lines
599 B
JavaScript
21 lines
599 B
JavaScript
import { mustCall } from '../common/index.mjs';
|
|
import { strictEqual } from 'assert';
|
|
|
|
import { importFixture } from '../fixtures/pkgexports.mjs';
|
|
|
|
importFixture('as%2Ff').catch(mustCall((err) => {
|
|
strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
|
|
}));
|
|
|
|
importFixture('as%5Cf').catch(mustCall((err) => {
|
|
strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
|
|
}));
|
|
|
|
importFixture('as\\df').catch(mustCall((err) => {
|
|
strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
|
|
}));
|
|
|
|
importFixture('@as@df').catch(mustCall((err) => {
|
|
strictEqual(err.code, 'ERR_INVALID_MODULE_SPECIFIER');
|
|
}));
|