Historical note: The current behavior of returning |false| on empty arrays was introduced in Bug 290592, Comment 22.
Comment on attachment 192977 [details] [diff] [review] [ ].every(f) now returns true r=shaver, thanks.
With this fix, could you remove the |else if (mode == EVERY)| clause just before the out label?
Created attachment 193100 [details] [diff] [review] [ ].every(f) now returns true; also removing extra assignments at end of loop Thank you for the hint. Indeed, now the assigments to |*rval| after the loop over the array can be removed (both for |some| and for |every|).
Comment on attachment 193100 [details] [diff] [review] [ ].every(f) now returns true; also removing extra assignments at end of loop sr+a=me -- mrbkap, can you do the honors for trunk and 1.8 branch? Thanks, /be
Checked in. Thanks for the patch, Hans-Andreas! /be
Checking in regress-305002.js; /cvsroot/mozilla/js/tests/js1_6/Array/regress-305002.js,v <-- regress-305002.js initial revision: 1.1 done