Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_5 / regress / regress-618574.js
1 /*
2  * Any copyright is dedicated to the Public Domain.
3  * http://creativecommons.org/licenses/publicdomain/
4  * Contributors: Gary Kwong and Jason Orendorff
5  */
6
7 var x = Proxy.create({
8     iterate: function () {
9             function f(){}
10             f.next = function () { throw StopIteration; }
11             return f;
12         }
13     });
14
15 for each (var e in [{}, {}, {}, {}, {}, {}, {}, {}, x]) {
16     for (var v in e)  // do not assert
17         ;
18 }
19
20 reportCompare(0, 0, 'ok');