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.
This commit is contained in:
Joseph Pecoraro 2017-04-11 00:14:32 -07:00 committed by Leo Balter
parent 9ed24917d4
commit 5424c81184
1 changed files with 3 additions and 3 deletions

View File

@ -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');