comparison: js/src/jit-test/tests/basic/testFunctionStatementNamedArguments.js
js/src/jit-test/tests/basic/testFunctionStatementNamedArguments.js
- branch
- TOR_BUG_3246
- changeset 7
- 129ffea94266
equal
deleted
inserted
replaced
|
1 var g; |
|
2 function foo(b) { |
|
3 if (b) |
|
4 function arguments() {}; |
|
5 return arguments; |
|
6 } |
|
7 |
|
8 var a = foo(true); |
|
9 assertEq(typeof a, "function"); |
|
10 assertEq(a.name, "arguments"); |