PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

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