We don't need to worry about such code. It is illegal in Cajita of
course. And the Cajita runtime may assume the absence of such
uncajoled nonsense. However, we do need to document such assumptions.

On Mon, Jul 20, 2009 at 7:26 AM, <[email protected]> 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)?
>
> http://codereview.appspot.com/97041
>



-- 
    Cheers,
    --MarkM

Reply via email to