From 49b14b577bb0e1e75cc1864e1a160180cb5f7bf0 Mon Sep 17 00:00:00 2001 From: legendecas Date: Thu, 9 Dec 2021 00:39:11 +0800 Subject: [PATCH] fixup! --- ...syntax_error.js => import-value_syntax_error_FIXTURE.js} | 0 ...lue_FIXTURE_throws.js => import-value_throws_FIXTURE.js} | 0 .../importValue/throws-typeerror-import-syntax-error.js | 6 +++--- .../prototype/importValue/throws-typeerror-import-throws.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename test/built-ins/ShadowRealm/prototype/importValue/{import-value_FIXTURE_syntax_error.js => import-value_syntax_error_FIXTURE.js} (100%) rename test/built-ins/ShadowRealm/prototype/importValue/{import-value_FIXTURE_throws.js => import-value_throws_FIXTURE.js} (100%) diff --git a/test/built-ins/ShadowRealm/prototype/importValue/import-value_FIXTURE_syntax_error.js b/test/built-ins/ShadowRealm/prototype/importValue/import-value_syntax_error_FIXTURE.js similarity index 100% rename from test/built-ins/ShadowRealm/prototype/importValue/import-value_FIXTURE_syntax_error.js rename to test/built-ins/ShadowRealm/prototype/importValue/import-value_syntax_error_FIXTURE.js diff --git a/test/built-ins/ShadowRealm/prototype/importValue/import-value_FIXTURE_throws.js b/test/built-ins/ShadowRealm/prototype/importValue/import-value_throws_FIXTURE.js similarity index 100% rename from test/built-ins/ShadowRealm/prototype/importValue/import-value_FIXTURE_throws.js rename to test/built-ins/ShadowRealm/prototype/importValue/import-value_throws_FIXTURE.js diff --git a/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-syntax-error.js b/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-syntax-error.js index b2b2e49ab4..5233e91201 100644 --- a/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-syntax-error.js +++ b/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-syntax-error.js @@ -10,7 +10,7 @@ info: | ... 17. Return ! PerformPromiseThen(innerCapability.[[Promise]], onFulfilled, callerRealm.[[Intrinsics]].[[%ThrowTypeError%]], promiseCapability). -flags: [async, module] +flags: [async] features: [ShadowRealm] ---*/ @@ -22,10 +22,10 @@ assert.sameValue( const r = new ShadowRealm(); -r.importValue('./import-value_FIXTURE_syntax_error.js', 'y') +r.importValue('./import-value_syntax_error_FIXTURE.js', 'y') .then( () => { - throw "(unreachable)"; + throw new Test262Error("unreachable"); }, err => { assert.sameValue(Object.getPrototypeOf(err), TypeError.prototype, 'should be rejected with TypeError'); diff --git a/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-throws.js b/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-throws.js index 31f8f27b5c..a600021596 100644 --- a/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-throws.js +++ b/test/built-ins/ShadowRealm/prototype/importValue/throws-typeerror-import-throws.js @@ -10,7 +10,7 @@ info: | ... 17. Return ! PerformPromiseThen(innerCapability.[[Promise]], onFulfilled, callerRealm.[[Intrinsics]].[[%ThrowTypeError%]], promiseCapability). -flags: [async, module] +flags: [async] features: [ShadowRealm] ---*/ @@ -22,10 +22,10 @@ assert.sameValue( const r = new ShadowRealm(); -r.importValue('./import-value_FIXTURE_throws.js', 'y') +r.importValue('./import-value_throws_FIXTURE.js', 'y') .then( () => { - throw "(unreachable)"; + throw new Test262Error("unreachable"); }, err => { assert.sameValue(Object.getPrototypeOf(err), TypeError.prototype, 'should be rejected with TypeError');