mirror of https://github.com/tc39/test262.git
34 lines
729 B
JavaScript
34 lines
729 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-imports
|
||
|
description: >
|
||
|
`import defer` must be followed by `*`
|
||
|
info: |
|
||
|
ImportDeclaration :
|
||
|
`import` ImportClause FromClause `;`
|
||
|
`import` `defer` NameSpaceImport FromClause `;`
|
||
|
`import` ModuleSpecifier `;`
|
||
|
|
||
|
ImportClause :
|
||
|
ImportedDefaultBinding
|
||
|
NameSpaceImport
|
||
|
NamedImports
|
||
|
ImportedDefaultBinding `,` NameSpaceImport
|
||
|
ImportedDefaultBinding `,` NamedImports
|
||
|
|
||
|
NameSpaceImport :
|
||
|
`*` `as` ImportedBinding
|
||
|
|
||
|
features: [import-defer]
|
||
|
|
||
|
negative:
|
||
|
phase: parse
|
||
|
type: SyntaxError
|
||
|
---*/
|
||
|
|
||
|
$DONOTEVALUATE();
|
||
|
|
||
|
import defer as ns from "./dep_FIXTURE.js";
|