Bug 1125356 - Use JS_NewPlainObject in the browser. r=bz
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user