Bug 921548 - Remove js_ValueToNonNullObject, which was entirely equivalent to ToObject. r=jorendorff
This commit is contained in:
@@ -985,7 +985,7 @@ js::ValueToIterator(JSContext *cx, unsigned flags, MutableHandleValue vp)
|
||||
return false;
|
||||
/* fall through */
|
||||
} else {
|
||||
obj = js_ValueToNonNullObject(cx, vp);
|
||||
obj = ToObject(cx, vp);
|
||||
if (!obj)
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user