[webkit-dev] Inheritance in IDL files/JS bindings

Maciej Stachowiak mjs at apple.com
Fri Jul 3 14:50:33 PDT 2009


On Jul 3, 2009, at 2:42 PM, Drew Wilson wrote:

>
> Is there anything special I need to do when implementing inheritance  
> in IDL files and JS bindings? I *think* I'm correctly following the  
> example of other places where we use inheritance (example  
> HTMLElement -> Element -> Node), although there are some options  
> defined in the .idl file like "GenerateNativeConverter" and  
> "GenerateToJS" that might be relevant but which I couldn't find any  
> documentation for.
>
> Anyhow, I'm digging into this further, but I figured people might be  
> able to shed some light on possible causes of this behavior.

Hard to tell without seeing your diff, but based on this I'd guess the  
bug is in the Worker constructor. Is there any chance it could be  
accidentally instantiating the wrong class, or setting the wrong  
prototype?

  - Maciej



More information about the webkit-dev mailing list