PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/arguments/args2c.js

http://github.com/zpao/v8monkey
JavaScript | 19 lines | 12 code | 5 blank | 2 comment | 1 complexity | 0a42204a7c1c1e250183a88ebd4ba307 MD5 | raw file
 1actual = '';
 2expected = 'g 0 0,g 1 2,g 2 4,g 3 6,g 4 8,';
 3
 4function g(x, y) {
 5  appendToActual('g ' + x + ' ' + y);
 6  //appendToActual('g ' + x + ' ' + y);
 7  //appendToActual('g ' + y);
 8}
 9
10function f() {
11  g.apply(this, arguments);
12}
13
14for (var i = 0; i < 5; ++i) {
15  f(i, i*2);
16}
17
18
19assertEq(actual, expected)