[Webkit-unassigned] [Bug 84540] JS binding code generator doesn't handle "attribute unsigned long[]" well

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 24 06:51:41 PDT 2012


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





--- Comment #23 from Kentaro Hara <haraken at chromium.org>  2012-04-24 06:51:40 PST ---
(In reply to comment #22)
> > Sorry Sean Wang this patch won't fix "float[]". Are you using 
> > readonly attribute float[] axes; idl interface or 
> > readonly attribute sequence<float> axes;
> 
> I'm using "readonly attribute float[] axes;". It seems it is the same issue according to the title of this bug.
> kentaro Hara<haraken at chromium.org> told me that JSC generator should support this syntax, right?

Thanks sam. I think we should use "readonly attribute float[] axes".

Regarding the difference between the array and the sequence, the spec says...

- Sequences are always passed by value.
- Unlike sequences, arrays are passed by reference. 
- Sequences must not be used as the type of an attribute, constant or exception field.

http://www.w3.org/TR/WebIDL/#idl-array
http://www.w3.org/TR/WebIDL/#idl-sequence

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