Bug 574130: JavaScript spread array initializers, r=jorendorff.

This commit is contained in:
Benjamin Peterson
2012-06-06 21:53:07 -05:00
parent a7c7c697dd
commit 71c5fe0a2a
15 changed files with 190 additions and 17 deletions

View File

@@ -886,7 +886,7 @@ js::ValueToIterator(JSContext *cx, unsigned flags, Value *vp)
* but it's "web JS" compatible. ES5 fixed for-in to match this de-facto
* standard.
*/
if ((flags & JSITER_ENUMERATE)) {
if (flags & JSITER_ENUMERATE) {
if (!js_ValueToObjectOrNull(cx, *vp, obj.address()))
return false;
/* fall through */