From 5424c811845e4abd79e9db7a2fe0ac0ac8ee08c0 Mon Sep 17 00:00:00 2001 From: Joseph Pecoraro Date: Tue, 11 Apr 2017 00:14:32 -0700 Subject: [PATCH] Fix Function.prototype.bind test (#958) 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');