Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm.

This commit is contained in:
Brian Hackett
2013-07-10 09:29:52 -06:00
parent de771854ed
commit d5a61ab0f3
95 changed files with 1935 additions and 1464 deletions

View File

@@ -342,7 +342,7 @@ GetCustomIterator(JSContext *cx, HandleObject obj, unsigned flags, MutableHandle
* trace, so the object we are iterating over is on top of the stack (-1).
*/
JSAutoByteString bytes;
if (!js_AtomToPrintableString(cx, name, &bytes))
if (!AtomToPrintableString(cx, name, &bytes))
return false;
RootedValue val(cx, ObjectValue(*obj));
js_ReportValueError2(cx, JSMSG_BAD_TRAP_RETURN_VALUE,
@@ -375,7 +375,7 @@ static inline PropertyIteratorObject *
NewPropertyIteratorObject(JSContext *cx, unsigned flags)
{
if (flags & JSITER_ENUMERATE) {
RootedTypeObject type(cx, cx->compartment()->getNewType(cx, &PropertyIteratorObject::class_, NULL));
RootedTypeObject type(cx, cx->getNewType(&PropertyIteratorObject::class_, NULL));
if (!type)
return NULL;