Debian Codegraph @

js/src/tests/test262/language/import/import-defer/syntax/invalid-default-and-defer-namespace.js

raw
1 // |reftest| skip error:SyntaxError -- import-defer is not supported
2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-imports
7 description: >
8 `import defer` cannot be used if there are both a default and namespace bindings
9 info: |
10 ImportDeclaration :
11 `import` ImportClause FromClause `;`
12 `import` `defer` NameSpaceImport FromClause `;`
13 `import` ModuleSpecifier `;`
14
15 ImportClause :
16 ImportedDefaultBinding
17 NameSpaceImport
18 NamedImports
19 ImportedDefaultBinding `,` NameSpaceImport
20 ImportedDefaultBinding `,` NamedImports
21
22 NameSpaceImport :
23 `*` `as` ImportedBinding
24
25 features: [import-defer]
26
27 negative:
28 phase: parse
29 type: SyntaxError
30 ---*/
31
32 $DONOTEVALUATE();
33
34 import defer x, * as ns from "./dep_FIXTURE.js";