Status: New
Owner: ----

New issue 1321 by [email protected]: ToObject should throw when called with null or undefined.
http://code.google.com/p/v8/issues/detail?id=1321

The spec has plenty of places where ToObject is being used and it should throw a TypeError if called in undefined or null (section 9.9). This is observable for example in the following code snippet:

Array.prototyp.slice.call(null);

Step 1 of Array.prototype.slice is:

1. Let O be the result of calling ToObject passing the this value as the argument.

in the code snippet above this needs to throw an exception.

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

Reply via email to