mirror of https://github.com/tc39/test262.git
31 lines
686 B
JavaScript
31 lines
686 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: >
|
|
`defer` is a valid name for default imports
|
|
info: |
|
|
ImportDeclaration :
|
|
`import` ImportClause FromClause `;`
|
|
`import` `defer` NameSpaceImport FromClause `;`
|
|
`import` ModuleSpecifier `;`
|
|
|
|
ImportClause :
|
|
ImportedDefaultBinding
|
|
...
|
|
|
|
ImportedDefaultBinding :
|
|
ImportedBinding
|
|
|
|
ImportedBinding :
|
|
BindingIdentifier[~Yield, +Await]
|
|
|
|
flags: [module]
|
|
features: [import-defer]
|
|
---*/
|
|
|
|
import defer from "./dep_FIXTURE.js";
|
|
|
|
assert.sameValue(defer, 1, "`defer` is the default export binding");
|