Merge pull request #194 from arv/function-length-is-configurable

Function length property is configurable
This commit is contained in:
Brian Terlson 2015-04-08 15:58:30 -07:00
commit fd6f206d69

View File

@ -69,8 +69,8 @@ function testBuiltInObject(obj, isFunction, isConstructor, properties, length) {
if (desc.enumerable) {
$ERROR("The length property of a built-in function must not be enumerable.");
}
if (desc.configurable) {
$ERROR("The length property of a built-in function must not be configurable.");
if (!desc.configurable) {
$ERROR("The length property of a built-in function must be configurable.");
}
}