mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 08:54:35 +02:00
Avoid duplicate binding import-source-binding-name.js (#4121)
This commit is contained in:
parent
27b2551c00
commit
03852c962b
@ -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>';
|
@ -19,7 +19,5 @@ $DONOTEVALUATE();
|
||||
|
||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
||||
|
||||
import source source from '<do not resolve>';
|
||||
import source from from '<do not resolve>';
|
||||
import source from '<do not resolve>';
|
||||
import from from '<do not resolve>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user