[Webkit-unassigned] [Bug 78210] Add support for unsigned long[] to IDL bindings to JSC.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 16 00:56:36 PST 2012


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


Kentaro Hara <haraken at chromium.org> changed:

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




--- Comment #5 from Kentaro Hara <haraken at chromium.org>  2012-02-16 00:56:36 PST ---
(From update of attachment 127325)
View in context: https://bugs.webkit.org/attachment.cgi?id=127325&action=review

> Source/WebCore/bindings/js/JSDOMBinding.h:350
> +        if (!object)

"if (exec->hadException())" might be better. If "!object" is true, then "exec->hadException()" is true.

> Source/WebCore/bindings/js/JSDOMBinding.h:354
> +        JSC::JSValue indexedValue;

Nit: You can move this declaration into the loop.

> Source/WebCore/bindings/js/JSDOMBinding.h:357
> +            if (indexedValue == JSC::JSValue(JSC::JSValue::JSUndefined) || !indexedValue.isNumber())

Maybe "if (exec->hadException() || indexedValue.isUndefinedOrNull() || !indexedValue.isUInt32())"?

> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2899
> +        return "jsUnsignedLongArrayToVector<unsigned long>(exec, $value)";

This should be "jsUnsignedLongArrayToVector(exec, $value)", since the function is not a template.

> Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp:2144
> +    Vector<unsigned long> unsignedLongArray(jsUnsignedLongArrayToVector<unsigned long>(exec, MAYBE_MISSING_PARAMETER(exec, 0, DefaultIsUndefined)));

Ditto.

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