Status: New
Owner: ----

New issue 1491 by dimituri: Property validation and shadowing in objects with array prototypes
http://code.google.com/p/v8/issues/detail?id=1491

For this code:

var arr = Object.create([]);
arr.length = 'foobar';

What is expected: arr.length becomes equal to 'foobar' (shadows prototype length)
What is observed: RangeError

Strange workaround:

var arr = Object.create([]);
arr.length = 0; // Validates and shadows
arr.length = 'foobar'; // Doesn't throw RangeError anymore and shadows


Tested in Chrome 13, 14, and Node.js 0.4.8.
Currently works as expected in SpiderMonkey (Firefox 4).

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to