summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1357075.js
blob: 47482e372b34eb3a76ee37999b7705a16f3ced22 (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| error: TypeError

var iterable = {};
var iterator = {
  return: 1
};
iterable[Symbol.iterator] = function() {
  return iterator;
};
for ([ class get {} ().iterator ] of [iterable]) {}