Source code
Revision control
Copy as Markdown
Other Tools
// |reftest| skip module -- import-defer is not supported
// 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";
asserts.sameValue(defer, 1, "`defer` is the default export binding");
reportCompare(0, 0);