mirror of https://github.com/tc39/test262.git
14 lines
554 B
JavaScript
14 lines
554 B
JavaScript
|
import { shouldBe, shouldThrow } from "./resources/assert.js"
|
||
|
|
||
|
shouldThrow(() => {
|
||
|
loadModule('./import-error/import-not-found.js');
|
||
|
}, `SyntaxError: Importing binding name 'B' is not found.`);
|
||
|
|
||
|
shouldThrow(() => {
|
||
|
loadModule('./import-error/import-ambiguous.js');
|
||
|
}, `SyntaxError: Importing binding name 'B' cannot be resolved due to ambiguous multiple bindings.`);
|
||
|
|
||
|
shouldThrow(() => {
|
||
|
loadModule('./import-error/import-default-from-star.js');
|
||
|
}, `SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.`);
|