summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug852016-2.js
blob: e3a15bddbe0935d1356b1cc4c511d056a98389df (plain)
1
2
3
4
5
6
7
8

function foo(str) {
  var x = eval(str); yield x[0];
}
for (var i = 0; i < 5; i++)
  assertEq(foo("[4,5,6]").next(), 4);
for (var i = 0; i < 5; i++)
  assertEq(foo("arguments").next(), "arguments");