mirror of https://github.com/tc39/test262.git
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:
parent
9ed24917d4
commit
5424c81184
|
@ -5,7 +5,7 @@
|
||||||
es5id: 15.3.4.5-15-5
|
es5id: 15.3.4.5-15-5
|
||||||
description: >
|
description: >
|
||||||
Function.prototype.bind - The [[Configurable]] attribute of length
|
Function.prototype.bind - The [[Configurable]] attribute of length
|
||||||
property in F set as false
|
property in F set as true
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var canConfigurable = false;
|
var canConfigurable = false;
|
||||||
|
@ -13,8 +13,8 @@ description: >
|
||||||
function foo() { }
|
function foo() { }
|
||||||
var obj = foo.bind({});
|
var obj = foo.bind({});
|
||||||
hasProperty = obj.hasOwnProperty("length");
|
hasProperty = obj.hasOwnProperty("length");
|
||||||
delete obj.caller;
|
delete obj.length;
|
||||||
canConfigurable = !obj.hasOwnProperty("length");
|
canConfigurable = !obj.hasOwnProperty("length");
|
||||||
|
|
||||||
assert(hasProperty, 'hasProperty !== true');
|
assert(hasProperty, 'hasProperty !== true');
|
||||||
assert.sameValue(canConfigurable, false, 'canConfigurable');
|
assert(canConfigurable, 'canConfigurable !== true');
|
||||||
|
|
Loading…
Reference in New Issue