mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
GlobalRef passed by value in reflect_dom_object, reflect_node #4165
This commit is contained in:
parent
661144d285
commit
582ba9d796
3 changed files with 4 additions and 4 deletions
|
@ -1830,7 +1830,7 @@ class CGWrapMethod(CGAbstractMethod):
|
|||
def __init__(self, descriptor):
|
||||
assert not descriptor.interface.isCallback()
|
||||
if not descriptor.isGlobal():
|
||||
args = [Argument('*mut JSContext', 'aCx'), Argument('&GlobalRef', 'aScope'),
|
||||
args = [Argument('*mut JSContext', 'aCx'), Argument('GlobalRef', 'aScope'),
|
||||
Argument("Box<%s>" % descriptor.concreteType, 'aObject', mutable=True)]
|
||||
else:
|
||||
args = [Argument('*mut JSContext', 'aCx'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue