mirror of https://github.com/tc39/test262.git
Fix 'asserts.throws()' typo in two tests
This should be 'assert.throws()', otherwise these fail unexpectedly. Fixes #3184.
This commit is contained in:
parent
50f3fca7a0
commit
2b01f137ef
|
@ -7,7 +7,7 @@ es5id: 15.11.4_A3
|
||||||
description: Checking if call of Error prototype as a function fails
|
description: Checking if call of Error prototype as a function fails
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
asserts.throws(TypeError, () => {
|
assert.throws(TypeError, () => {
|
||||||
Error.prototype();
|
Error.prototype();
|
||||||
throw new Test262Error();
|
throw new Test262Error();
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,7 +7,7 @@ es5id: 15.11.4_A4
|
||||||
description: Checking if creating "new Error.prototype" fails
|
description: Checking if creating "new Error.prototype" fails
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
asserts.throws(TypeError, () => {
|
assert.throws(TypeError, () => {
|
||||||
new Error.prototype();
|
new Error.prototype();
|
||||||
throw new Test262Error();
|
throw new Test262Error();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue