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:
Ms2ger 2014-06-11 12:35:14 +02:00
parent 57e8be0c8f
commit 44f57ae6da
2 changed files with 3 additions and 3 deletions

View file

@ -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,