test262/test/language/import/import-defer/syntax/invalid-export-defer-namespace.js
Nicolò Ribaudo 10c2615aa5
Add partial tests for import defer (#4278)
Co-authored-by: Asumu Takikawa <asumu@igalia.com>
2024-12-02 10:32:38 +01:00

33 lines
796 B
JavaScript

// Copyright (C) 2024 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-exports
description: >
`export defer` is not valid
info: |
ExportDeclaration :
`export` ExportFromClause FromClause `;`
`export` NamedExports `;`
`export` VariableStatement
`export` Declaration
`export` `default` HoistableDeclaration
`export` `default` ClassDeclaration
`export` `default` [lookahead ∉ { function, async [no LineTerminator here] function, class }] AssignmentExpression `;`
ExportFromClause :
`*`
`*` `as` ModuleExportName
NamedExports
features: [import-defer]
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
export defer * as ns from "./dep_FIXTURE.js";