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 76402ddc68
commit 2967b8ac9a

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;