summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug885648.js
blob: 60816962cae4011eb399903a8b5bf902f879c60a (plain)
1
2
3
4
5
6
7
8
9
gczeal(4,1);
var iterable = {persistedProp: 17};
iterable.__iterator__ = function() {
    yield ["foo", 2];
    yield ["bar", 3];
};
var it = Iterator(iterable);
assertEq(it.next().toString(), "foo,2");
assertEq(it.next().toString(), "bar,3");