mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
fixup!
This commit is contained in:
parent
2000e858ff
commit
49b14b577b
@ -10,7 +10,7 @@ info: |
|
|||||||
...
|
...
|
||||||
17. Return ! PerformPromiseThen(innerCapability.[[Promise]], onFulfilled, callerRealm.[[Intrinsics]].[[%ThrowTypeError%]], promiseCapability).
|
17. Return ! PerformPromiseThen(innerCapability.[[Promise]], onFulfilled, callerRealm.[[Intrinsics]].[[%ThrowTypeError%]], promiseCapability).
|
||||||
|
|
||||||
flags: [async, module]
|
flags: [async]
|
||||||
features: [ShadowRealm]
|
features: [ShadowRealm]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ assert.sameValue(
|
|||||||
|
|
||||||
const r = new ShadowRealm();
|
const r = new ShadowRealm();
|
||||||
|
|
||||||
r.importValue('./import-value_FIXTURE_syntax_error.js', 'y')
|
r.importValue('./import-value_syntax_error_FIXTURE.js', 'y')
|
||||||
.then(
|
.then(
|
||||||
() => {
|
() => {
|
||||||
throw "(unreachable)";
|
throw new Test262Error("unreachable");
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
assert.sameValue(Object.getPrototypeOf(err), TypeError.prototype, 'should be rejected with TypeError');
|
assert.sameValue(Object.getPrototypeOf(err), TypeError.prototype, 'should be rejected with TypeError');
|
||||||
|
@ -10,7 +10,7 @@ info: |
|
|||||||
...
|
...
|
||||||
17. Return ! PerformPromiseThen(innerCapability.[[Promise]], onFulfilled, callerRealm.[[Intrinsics]].[[%ThrowTypeError%]], promiseCapability).
|
17. Return ! PerformPromiseThen(innerCapability.[[Promise]], onFulfilled, callerRealm.[[Intrinsics]].[[%ThrowTypeError%]], promiseCapability).
|
||||||
|
|
||||||
flags: [async, module]
|
flags: [async]
|
||||||
features: [ShadowRealm]
|
features: [ShadowRealm]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ assert.sameValue(
|
|||||||
|
|
||||||
const r = new ShadowRealm();
|
const r = new ShadowRealm();
|
||||||
|
|
||||||
r.importValue('./import-value_FIXTURE_throws.js', 'y')
|
r.importValue('./import-value_throws_FIXTURE.js', 'y')
|
||||||
.then(
|
.then(
|
||||||
() => {
|
() => {
|
||||||
throw "(unreachable)";
|
throw new Test262Error("unreachable");
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
assert.sameValue(Object.getPrototypeOf(err), TypeError.prototype, 'should be rejected with TypeError');
|
assert.sameValue(Object.getPrototypeOf(err), TypeError.prototype, 'should be rejected with TypeError');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user