mirror of
https://github.com/servo/servo.git
synced 2025-06-09 09:03:23 +00:00
Use Cell for Reflector::object.
This commit is contained in:
parent
4c5437c58b
commit
c331b200b1
3 changed files with 16 additions and 13 deletions
|
@ -1838,7 +1838,7 @@ class CGWrapMethod(CGAbstractMethod):
|
|||
|
||||
%s
|
||||
|
||||
raw.mut_reflector().set_jsobject(obj);
|
||||
raw.reflector().set_jsobject(obj);
|
||||
|
||||
return raw;""" % CreateBindingJSObject(self.descriptor, "scope")
|
||||
else:
|
||||
|
@ -1848,7 +1848,7 @@ class CGWrapMethod(CGAbstractMethod):
|
|||
let proto = GetProtoObject(aCx, obj, obj);
|
||||
JS_SetPrototype(aCx, obj, proto);
|
||||
});
|
||||
raw.mut_reflector().set_jsobject(obj);
|
||||
raw.reflector().set_jsobject(obj);
|
||||
return raw;""" % CreateBindingJSObject(self.descriptor)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue