From 8bdf42cbb30e3ac212c8b5f4c0234003c0960ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 28 Jun 2024 14:59:57 +0200 Subject: [PATCH 1/5] Update import-source-binding-name.js --- .../source-phase-import/import-source-binding-name.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/language/module-code/source-phase-import/import-source-binding-name.js b/test/language/module-code/source-phase-import/import-source-binding-name.js index c08903a1e3a..c240c12ce0f 100644 --- a/test/language/module-code/source-phase-import/import-source-binding-name.js +++ b/test/language/module-code/source-phase-import/import-source-binding-name.js @@ -19,7 +19,6 @@ $DONOTEVALUATE(); import "../resources/ensure-linking-error_FIXTURE.js"; -import source source from ''; import source from from ''; import source from ''; import from from ''; From cad1fd52195d353ea52efe30d6b9c16a894a3b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 28 Jun 2024 15:01:21 +0200 Subject: [PATCH 2/5] Create import-source-binding-name-2.js --- .../import-source-binding-name-2.js | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/language/module-code/source-phase-import/import-source-binding-name-2.js diff --git a/test/language/module-code/source-phase-import/import-source-binding-name-2.js b/test/language/module-code/source-phase-import/import-source-binding-name-2.js new file mode 100644 index 00000000000..9bc061ba0b3 --- /dev/null +++ b/test/language/module-code/source-phase-import/import-source-binding-name-2.js @@ -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 ''; +import source from from ''; From 106cc1272448de67c4ea667ae32531a90311f33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 28 Jun 2024 15:01:45 +0200 Subject: [PATCH 3/5] Update import-source-binding-name.js --- .../source-phase-import/import-source-binding-name.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/language/module-code/source-phase-import/import-source-binding-name.js b/test/language/module-code/source-phase-import/import-source-binding-name.js index c240c12ce0f..2161da9bb19 100644 --- a/test/language/module-code/source-phase-import/import-source-binding-name.js +++ b/test/language/module-code/source-phase-import/import-source-binding-name.js @@ -20,5 +20,4 @@ $DONOTEVALUATE(); import "../resources/ensure-linking-error_FIXTURE.js"; import source from from ''; -import source from ''; import from from ''; From a4074f7613abb62b2d2dccc53b795b2ef0176c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 28 Jun 2024 15:07:59 +0200 Subject: [PATCH 4/5] Update import-source-binding-name-2.js From 45af4b8b601d791e830d84fac806fe2ee70ae51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 28 Jun 2024 15:08:35 +0200 Subject: [PATCH 5/5] Update import-source-binding-name.js --- .../source-phase-import/import-source-binding-name.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/language/module-code/source-phase-import/import-source-binding-name.js b/test/language/module-code/source-phase-import/import-source-binding-name.js index 2161da9bb19..e75446f3687 100644 --- a/test/language/module-code/source-phase-import/import-source-binding-name.js +++ b/test/language/module-code/source-phase-import/import-source-binding-name.js @@ -19,5 +19,5 @@ $DONOTEVALUATE(); import "../resources/ensure-linking-error_FIXTURE.js"; -import source from from ''; +import source from ''; import from from '';