Debian Codegraph @

js/src/tests/test262/language/import/import-defer/syntax/invalid-export-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-exports
7 description: >
8 `export defer` is not valid
9 info: |
10 ExportDeclaration :
11 `export` ExportFromClause FromClause `;`
12 `export` NamedExports `;`
13 `export` VariableStatement
14 `export` Declaration
15 `export` `default` HoistableDeclaration
16 `export` `default` ClassDeclaration
17 `export` `default` [lookahead ∉ { function, async [no LineTerminator here] function, class }] AssignmentExpression `;`
18
19 ExportFromClause :
20 `*`
21 `*` `as` ModuleExportName
22 NamedExports
23
24 features: [import-defer]
25
26 negative:
27 phase: parse
28 type: SyntaxError
29 ---*/
30
31 $DONOTEVALUATE();
32
33 export defer * as ns from "./dep_FIXTURE.js";