mirror of
https://github.com/servo/servo.git
synced 2025-06-18 13:24:29 +00:00
Use the object prototype for callback interface objects
window.NodeFilter's prototype should be the object prototype.
This commit is contained in:
parent
833e0d2fac
commit
7693aecf15
3 changed files with 21 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue