Bug 1136906 part 2. Stop passing a parent to JS_NewObject in xpconnect code. r=bholley

This commit is contained in:
Boris Zbarsky 2015-02-26 09:40:08 -05:00
parent 0cd789c1cc
commit 3ebec14f2b

View File

@ -464,7 +464,7 @@ CreateObjectIn(JSContext *cx, HandleValue vobj, CreateObjectInOptions &options,
RootedObject obj(cx);
{
JSAutoCompartment ac(cx, scope);
obj = JS_NewObject(cx, nullptr, scope);
obj = JS_NewPlainObject(cx);
if (!obj)
return false;