diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testBug603193.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testBug603193.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testBug603193.js b/js/src/jit-test/tests/basic/testBug603193.js new file mode 100644 index 000000000..8bebb5fdf --- /dev/null +++ b/js/src/jit-test/tests/basic/testBug603193.js @@ -0,0 +1,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") |