Fix 'asserts.throws()' typo in two tests

This should be 'assert.throws()', otherwise these fail unexpectedly.

Fixes #3184.
This commit is contained in:
Linus Groh 2021-09-05 23:25:55 +01:00 committed by Leo Balter
parent 50f3fca7a0
commit 2b01f137ef
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ es5id: 15.11.4_A3
description: Checking if call of Error prototype as a function fails
---*/
asserts.throws(TypeError, () => {
assert.throws(TypeError, () => {
Error.prototype();
throw new Test262Error();
});

View File

@ -7,7 +7,7 @@ es5id: 15.11.4_A4
description: Checking if creating "new Error.prototype" fails
---*/
asserts.throws(TypeError, () => {
assert.throws(TypeError, () => {
new Error.prototype();
throw new Test262Error();
});