mirror of https://github.com/tc39/test262.git
34 lines
750 B
JavaScript
34 lines
750 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` cannot be used with named imports
|
|
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 { default as x } from "./dep_FIXTURE.js";
|