mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
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(
|
assert.throws(
|
||||||
function () { String.prototype.isWellFormed.call(obj); },
|
|
||||||
Test262Error,
|
Test262Error,
|
||||||
|
function () { String.prototype.isWellFormed.call(obj); },
|
||||||
'coerces the receiver to a string'
|
'coerces the receiver to a string'
|
||||||
);
|
);
|
||||||
|
@ -17,5 +17,5 @@ verifyProperty(String.prototype.toWellFormed, 'name', {
|
|||||||
enumerable: false,
|
enumerable: false,
|
||||||
writable: false,
|
writable: false,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
value: 'isWellFormed'
|
value: 'toWellFormed'
|
||||||
});
|
});
|
||||||
|
@ -20,8 +20,8 @@ var obj = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
asserts.throws(
|
assert.throws(
|
||||||
function () { String.prototype.toWellFormed.call(obj); },
|
|
||||||
Test262Error,
|
Test262Error,
|
||||||
|
function () { String.prototype.toWellFormed.call(obj); },
|
||||||
'coerces the receiver to a string'
|
'coerces the receiver to a string'
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user