On 2009/07/20 14:26:04, metaweta wrote:
Sorry, just thought of a weird case to consider:

Number.prototype.length = 2;
Number.prototype[0] = 6;
Number.prototype[1] = 7;
Array.prototype.slice.apply(2, 0, (2).length);
// returns [6, 7]

Should we cast self = Object(self)?

ah, yeah.  how about this?


http://codereview.appspot.com/97041

Reply via email to