summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug528644.js
blob: 260e0d995904e8df75f64c56f93ca45018f7a925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Don't crash

function g(foo) {
  for (a in foo) {
  }
}

var makegen = eval("\n\
  (function(b) {\n\
      var h = \n\
        eval(\"new function() { yield print(b) }\" ); \n\
    return h\n\
  })\n\
");

g(makegen());