-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid duplicate binding import-source-binding-name.js (#4121)
- Loading branch information
1 parent
27b2551
commit 03852c9
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
test/language/module-code/source-phase-import/import-source-binding-name-2.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (C) 2024 Chengzhong Wu. All rights reserved. | ||
// This code is governed by the BSD license found in the LICENSE file. | ||
/*--- | ||
description: > | ||
ImportBinding in ImportDeclaration may be 'source' and 'from' | ||
esid: sec-modules | ||
info: | | ||
ImportDeclaration: | ||
import source ImportedBinding FromClause ; | ||
negative: | ||
phase: resolution | ||
type: SyntaxError | ||
features: [source-phase-imports] | ||
flags: [module] | ||
---*/ | ||
|
||
$DONOTEVALUATE(); | ||
|
||
import "../resources/ensure-linking-error_FIXTURE.js"; | ||
|
||
import source source from '<do not resolve>'; | ||
import source from from '<do not resolve>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters