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:
Jason Orendorff
2014-06-23 10:57:02 -05:00
parent ddc167bc77
commit 8567ce66f2
12 changed files with 25 additions and 121 deletions

View File

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