This commit is contained in:
legendecas 2021-12-09 00:39:11 +08:00 committed by Rick Waldron
parent 2000e858ff
commit 49b14b577b
4 changed files with 6 additions and 6 deletions

View File

@ -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');

View File

@ -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');