mirror of
https://github.com/tc39/test262.git
synced 2025-07-19 20:14:56 +02:00
Merge pull request #235 from bocoup/correct-assertion-message
Correct error messages
This commit is contained in:
commit
4c4db39392
@ -81,13 +81,13 @@ function testBuiltInObject(obj, isFunction, isConstructor, properties, length) {
|
||||
}
|
||||
// accessor properties don't have writable attribute
|
||||
if (desc.hasOwnProperty("writable") && !desc.writable) {
|
||||
$ERROR("The " + prop + " property of this built-in function must be writable.");
|
||||
$ERROR("The " + prop + " property of this built-in object must be writable.");
|
||||
}
|
||||
if (desc.enumerable) {
|
||||
$ERROR("The " + prop + " property of this built-in function must not be enumerable.");
|
||||
$ERROR("The " + prop + " property of this built-in object must not be enumerable.");
|
||||
}
|
||||
if (!desc.configurable) {
|
||||
$ERROR("The " + prop + " property of this built-in function must be configurable.");
|
||||
$ERROR("The " + prop + " property of this built-in object must be configurable.");
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user