[Webkit-unassigned] [Bug 45118] Update TypedArrays to throw RangeError or similar instead of INDEX_SIZE_ERR

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 14:55:13 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=45118


arno. <arno at renevier.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arno at renevier.net




--- Comment #1 from arno. <arno at renevier.net>  2012-08-02 14:55:13 PST ---
Currently, there is a mix of dom INDEX_SIZE_ERR exceptions, and of RangeError. For example, if you build a typed array from a too large object (array of typed array), a dom INDEX_SIZE_ERR is thrown. But if you build a too typed array from a too large number, a RangeError is thrown.

Another inconsistency: when passing invalid arguments to set method, a dom SYNTAX_ERR exception is thrown in v8. But in JavasScriptCore, it's a JavaScript SyntaxError.

On the other browsers I tested (firefox and opera), javascript exception are thrown (Error for firefox, TypeError for opera).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list