Use the object prototype for callback interface objects

window.NodeFilter's prototype should be the object prototype.
This commit is contained in:
Anthony Ramine 2016-01-04 15:34:52 +01:00
parent 833e0d2fac
commit 7693aecf15
3 changed files with 21 additions and 12 deletions

View file

@ -2374,7 +2374,7 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
if self.descriptor.interface.isCallback():
assert not self.descriptor.interface.ctor() and self.descriptor.interface.hasConstants()
return CGGeneric("""\
create_callback_interface_object(cx, receiver, throwing_constructor, 0, sConstants, %s);""" % str_to_const_array(name))
create_callback_interface_object(cx, receiver, sConstants, %s);""" % str_to_const_array(name))
protoChain = self.descriptor.prototypeChain
if len(protoChain) == 1: