Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz

This commit is contained in:
Tom Schuster
2015-01-24 16:38:08 +01:00
parent d9d5256a50
commit 7c3552a7df
20 changed files with 46 additions and 62 deletions

View File

@@ -699,7 +699,7 @@ JavaScriptShared::Unwrap(JSContext *cx, const InfallibleTArray<CpowEntry> &aCpow
if (!aCpows.Length())
return true;
RootedObject obj(cx, JS_NewObject(cx, nullptr, JS::NullPtr(), JS::NullPtr()));
RootedObject obj(cx, JS_NewPlainObject(cx));
if (!obj)
return false;