From 4913f7864630dcea1860b2627eb3723fd4d6f096 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Wed, 14 Aug 2024 00:37:01 +0100 Subject: [PATCH] Use `` specifier --- .../import-source-binding-name-2.js | 13 +++---------- .../import-source-binding-name.js | 13 +++---------- .../source-phase-import/import-source-newlines.js | 12 +++--------- 3 files changed, 9 insertions(+), 29 deletions(-) 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 index 9bc061ba0b3..6160e635a31 100644 --- 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 @@ -8,16 +8,9 @@ info: | ImportDeclaration: import source ImportedBinding FromClause ; -negative: - phase: resolution - type: SyntaxError -features: [source-phase-imports] +features: [source-phase-imports, source-phase-imports-module-source] flags: [module] ---*/ -$DONOTEVALUATE(); - -import "../resources/ensure-linking-error_FIXTURE.js"; - -import source source from ''; -import source from from ''; +import source source from ''; +import source from from ''; 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 e75446f3687..0f540c5dec9 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 @@ -8,16 +8,9 @@ info: | ImportDeclaration: import source ImportedBinding FromClause ; -negative: - phase: resolution - type: SyntaxError -features: [source-phase-imports] +features: [source-phase-imports, source-phase-imports-module-source] flags: [module] ---*/ -$DONOTEVALUATE(); - -import "../resources/ensure-linking-error_FIXTURE.js"; - -import source from ''; -import from from ''; +import source from ''; +import from from ''; diff --git a/test/language/module-code/source-phase-import/import-source-newlines.js b/test/language/module-code/source-phase-import/import-source-newlines.js index a5aa505186f..6524c052a8d 100644 --- a/test/language/module-code/source-phase-import/import-source-newlines.js +++ b/test/language/module-code/source-phase-import/import-source-newlines.js @@ -13,19 +13,13 @@ info: | 16.2.1.7.2 GetModuleSource ( ) Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available. -negative: - phase: resolution - type: SyntaxError -features: [source-phase-imports] + +features: [source-phase-imports, source-phase-imports-module-source] flags: [module] ---*/ -$DONOTEVALUATE(); - -import "../resources/ensure-linking-error_FIXTURE.js"; - import 

source -

y from ''; +

y from '';