From ad8af4be3a0c818a3ee05b61e121b4b2516199d0 Mon Sep 17 00:00:00 2001 From: Erik Arvidsson Date: Wed, 11 Mar 2015 10:25:56 -0400 Subject: [PATCH] Function length property is configurable In ES6 the function length property was changed to become configurable. --- harness/testBuiltInObject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harness/testBuiltInObject.js b/harness/testBuiltInObject.js index 3a8d24fdc4..197cae36e2 100644 --- a/harness/testBuiltInObject.js +++ b/harness/testBuiltInObject.js @@ -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."); } }