On Wed, Oct 21, 2009 at 11:44 AM, Christian Plesner Hansen <
[email protected]> wrote:

> > then x[10000] = 10000, even though x.length = 3.  It violates the
> > principle of least surprise that canvas arrays behaves differently.
>
> That being said, inconsistent behavior is the hallmark of JS so maybe
> being consistent would actually be more surprising than being wildly
> inconsistent...
>

There is now discussion on the 3dweb list that requiring exceptions to be
raised for out-of-range accesses on these objects was a mistake.

I think it's poor that CanvasPixelArray silently drops out-of-range accesses
on the floor, and was hoping to get some better behavior for these new
array-like types.

-Ken

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

Reply via email to