[Webkit-unassigned] [Bug 88411] FileAPI: If type consists of non-ASCII characters in Blob constructor, it should throw a SyntaxError.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 6 07:07:47 PDT 2012


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


Kentaro Hara <haraken at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #146013|review?, commit-queue?      |review-, commit-queue-
               Flag|                            |




--- Comment #2 from Kentaro Hara <haraken at chromium.org>  2012-06-06 07:07:45 PST ---
(From update of attachment 146013)
View in context: https://bugs.webkit.org/attachment.cgi?id=146013&action=review

> Source/WebCore/bindings/js/JSBlobCustom.cpp:108
> +            setDOMException(exec, SYNTAX_ERR);
> +            return JSValue::encode(JSValue());

SYNTAX_ERR and SyntaxError are different. You need to use 'return throwVMError(exec, createSyntaxError(exec, "..."));'

> Source/WebCore/bindings/v8/custom/V8BlobCustom.cpp:106
> +            return throwError(SYNTAX_ERR, args.GetIsolate());

Ditto. You need to use 'return V8Proxy::throwError(V8Proxy::SyntaxError, "...");'

-- 
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