Function length property is configurable

In ES6 the function length property was changed to become
configurable.
This commit is contained in:
Erik Arvidsson 2015-03-11 10:25:56 -04:00
parent d24fd10549
commit ad8af4be3a
1 changed files with 2 additions and 2 deletions

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.");
}
}