Fix typos in String.prototype.isWellFormed/String.prototype.toWellFormed

1. String.prototype.toWellFormed's name is "toWellFormed".

2. "asserts" does not exist in the test harness, and "assert.throws"
   expects the error type first.
This commit is contained in:
Timothy Flynn 2022-12-01 10:56:52 -05:00 committed by Ms2ger
parent 30a5b38f23
commit f1fc5c6497
3 changed files with 5 additions and 5 deletions

View File

@ -20,8 +20,8 @@ var obj = {
}
};
asserts.throws(
function () { String.prototype.isWellFormed.call(obj); },
assert.throws(
Test262Error,
function () { String.prototype.isWellFormed.call(obj); },
'coerces the receiver to a string'
);

View File

@ -17,5 +17,5 @@ verifyProperty(String.prototype.toWellFormed, 'name', {
enumerable: false,
writable: false,
configurable: true,
value: 'isWellFormed'
value: 'toWellFormed'
});

View File

@ -20,8 +20,8 @@ var obj = {
}
};
asserts.throws(
function () { String.prototype.toWellFormed.call(obj); },
assert.throws(
Test262Error,
function () { String.prototype.toWellFormed.call(obj); },
'coerces the receiver to a string'
);