mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
Bug 1136906 part 2. Stop passing a parent to JS_NewObject in xpconnect code. r=bholley
This commit is contained in:
parent
0cd789c1cc
commit
3ebec14f2b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user