[webkit-dev] Invocation with undefined this on JS binding object

Xabier Rodríguez Calvar calvaris at igalia.com
Thu Jul 2 00:56:08 PDT 2015


O Mér, 01-07-2015 ás 18:48 +0000, youenn fablet escribiu:
> One way may be to make 'size' an attribute, cachable and returning a 
> JSFunction wrapping a C++ function returning 1. Not sure this will 
> pass signature tests though.

I was thinking of trying this, yes.

> IIUC, 'size' is somehow similar to a C++ static class method. A third
> approach could be to add a 'static' IDL keyword to the binding 
> generator to enable calling static methods of the DOM class. No 
> custom code in that case.

I thought of this too. I will probably go to the first case and then
using that as a use case to extend the bindings with a
"[StaticNonObjectMethod]" idl attribute.

Br.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20150702/6a9e2da1/attachment.sig>


More information about the webkit-dev mailing list