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

@@ -1743,7 +1743,7 @@ HTMLMediaElement::MozGetMetadata(JSContext* cx,
return;
}
JS::Rooted<JSObject*> tags(cx, JS_NewObject(cx, nullptr, JS::NullPtr(), JS::NullPtr()));
JS::Rooted<JSObject*> tags(cx, JS_NewPlainObject(cx));
if (!tags) {
aRv.Throw(NS_ERROR_FAILURE);
return;