mirror of https://github.com/tc39/test262.git
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:
parent
30a5b38f23
commit
f1fc5c6497
|
@ -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'
|
||||
);
|
||||
|
|
|
@ -17,5 +17,5 @@ verifyProperty(String.prototype.toWellFormed, 'name', {
|
|||
enumerable: false,
|
||||
writable: false,
|
||||
configurable: true,
|
||||
value: 'isWellFormed'
|
||||
value: 'toWellFormed'
|
||||
});
|
||||
|
|
|
@ -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'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue