mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
Pass a JSRef to RegisterBindings::Register.
JS<T> should only be used for members of traced structures; the correct type for arguments is JSRef.
This commit is contained in:
parent
57e8be0c8f
commit
44f57ae6da
2 changed files with 3 additions and 3 deletions
|
@ -2078,7 +2078,7 @@ class CGDefineDOMInterfaceMethod(CGAbstractMethod):
|
|||
"""
|
||||
def __init__(self, descriptor):
|
||||
args = [
|
||||
Argument('&JS<Window>', 'window'),
|
||||
Argument('&JSRef<Window>', 'window'),
|
||||
Argument('&mut JSPageInfo', 'js_info'),
|
||||
]
|
||||
CGAbstractMethod.__init__(self, descriptor, 'DefineDOMInterface', 'void', args, pub=True)
|
||||
|
@ -4192,7 +4192,7 @@ class CGDictionary(CGThing):
|
|||
class CGRegisterProtos(CGAbstractMethod):
|
||||
def __init__(self, config):
|
||||
arguments = [
|
||||
Argument('&JS<Window>', 'window'),
|
||||
Argument('&JSRef<Window>', 'window'),
|
||||
Argument('&mut JSPageInfo', 'js_info'),
|
||||
]
|
||||
CGAbstractMethod.__init__(self, None, 'Register', 'void', arguments,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue