/js/src/jit-test/tests/jaeger/recompile/bug649769.js

http://github.com/zpao/v8monkey · JavaScript · 16 lines · 13 code · 3 blank · 0 comment · 1 complexity · 1793840008c14959cc6b8cb197c22d0a MD5 · raw file

  1. function g(x) {
  2. if (!x) {
  3. throw 1;
  4. }
  5. }
  6. function f(a, b, c, d) {
  7. var x = [].push(3);
  8. g(true);
  9. assertEq(x, 1);
  10. }
  11. f(1.2, 2, 3, 4);
  12. gc();
  13. f(1, 2, 3, 4);