From 9d089252531e5c8c0f4df7180d104a0ee27ed390 Mon Sep 17 00:00:00 2001 From: Joseph Pecoraro Date: Mon, 10 Apr 2017 00:10:33 -0700 Subject: [PATCH] Correct test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js The `length` property should be [[Configurable]] https://tc39.github.io/ecma262/#sec-function.prototype.bind Also the test was testing deleting the wrong property. Fixes #957. --- test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js index e18bfc126c7..9a0e9fe660f 100644 --- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js +++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js @@ -5,7 +5,7 @@ es5id: 15.3.4.5-15-5 description: > Function.prototype.bind - The [[Configurable]] attribute of length - property in F set as false + property in F set as true ---*/ var canConfigurable = false; @@ -13,8 +13,8 @@ description: > function foo() { } var obj = foo.bind({}); hasProperty = obj.hasOwnProperty("length"); - delete obj.caller; + delete obj.length; canConfigurable = !obj.hasOwnProperty("length"); assert(hasProperty, 'hasProperty !== true'); -assert.sameValue(canConfigurable, false, 'canConfigurable'); +assert(canConfigurable, 'canConfigurable !== true');