Use Cell for Reflector::object.

This commit is contained in:
Ms2ger 2014-06-12 14:19:29 +02:00
parent 4c5437c58b
commit c331b200b1
3 changed files with 16 additions and 13 deletions

View file

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