/js/src/jit-test/tests/jaeger/bug619433-2.js

http://github.com/zpao/v8monkey · JavaScript · 10 lines · 9 code · 1 blank · 0 comment · 1 complexity · f319ca63ac13e22ee920fc10e1dc26fc MD5 · raw file

  1. function foo(x) {
  2. var y = 2.5;
  3. y = -x;
  4. var z = [1,2,y];
  5. return x + 5;
  6. }
  7. for (var i = 0; i < 20; i++)
  8. foo(i);
  9. assertEq(foo(20), 25);