summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug603193.js
blob: 8bebb5fdfbd2a6e24cbd312cf1f98cfec792465e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function g(code) {
  f = Function(code);
  for (a in f()) {}
}

/* Get call ic in a state to call CompileFunction for new functions. */
g()
g("(function(){})")
g()

/* Call generator with frame created by call ic + CompileFunction. */
g("yield")