Bug 645416, part 22 - Remove JSCompartment::wrapId. r=terrence.
This is unnecessary now that object jsids no longer exist. Both string and symbol jsids point only to GC things in the atoms compartment, which are safe to pass to any compartment without wrapping.
This commit is contained in:
@@ -1847,8 +1847,6 @@ JS_CopyPropertyFrom(JSContext *cx, HandleId id, HandleObject target,
|
||||
RootedId wrappedId(cx, id);
|
||||
if (!cx->compartment()->wrap(cx, &desc))
|
||||
return false;
|
||||
if (!cx->compartment()->wrapId(cx, wrappedId.address()))
|
||||
return false;
|
||||
|
||||
bool ignored;
|
||||
return DefineOwnProperty(cx, target, wrappedId, desc, &ignored);
|
||||
|
||||
Reference in New Issue
Block a user