- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 17 Jul 2014 13:55:08 -0400
- To: public-fx@w3.org
On 7/17/14, 1:44 PM, Boris Zbarsky wrote: > That assumes that UAs implement [ArrayClass] at all, but they need to do > it anyway for MediaList as things stand. And it's a pretty simple change, I expect. In Gecko's binding generator, it was literally: - getParentProto = "aCx, JS_GetObjectPrototype(aCx, aGlobal)" + if self.descriptor.interface.getExtendedAttribute("ArrayClass"): + getParentProto = "aCx, JS_GetArrayPrototype(aCx, aGlobal)" + else: + getParentProto = "aCx, JS_GetObjectPrototype(aCx, aGlobal)" plus the change to the WebIDL parser to add it to the list of known extended attributes on interfaces and check that the interface it's specified on does not have an ancestor. -Boris
Received on Thursday, 17 July 2014 17:55:38 UTC