Status: New
Owner: ----
New issue 2464 by brandon.benvie: Array.prototype.sort should throw when
Put fails
http://code.google.com/p/v8/issues/detail?id=2464
Based on the ES spec, sort should call Put with throw=true. So the
following code should throw an error due to string indices being
non-writable:
[].sort.call('test');
Instead, it simply returns 'test', which is doubly wrong since the first
step of sort should be ToObject(this).
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev