michael@0: // |reftest| skip michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributors: Gary Kwong and Jason Orendorff michael@0: */ michael@0: michael@0: var x = Proxy.create({ michael@0: iterate: function () { michael@0: function f(){} michael@0: f.next = function () { throw StopIteration; } michael@0: return f; michael@0: } michael@0: }); michael@0: michael@0: for each (var e in [{}, {}, {}, {}, {}, {}, {}, {}, x]) { michael@0: for (var v in e) // do not assert michael@0: ; michael@0: } michael@0: michael@0: reportCompare(0, 0, 'ok');