comparison: js/src/jit-test/tests/basic/testBug772328.js
js/src/jit-test/tests/basic/testBug772328.js
- branch
- TOR_BUG_3246
- changeset 7
- 129ffea94266
equal
deleted
inserted
replaced
|
1 function f(x) { |
|
2 function x() {} |
|
3 arguments[0] = 42; |
|
4 return x; |
|
5 } |
|
6 assertEq(f(0), 42); |
|
7 |
|
8 function g(x) { |
|
9 function x() {} |
|
10 assertEq(arguments[0], x); |
|
11 } |
|
12 g(0); |
|
13 |
|
14 var caught = false; |
|
15 try { |
|
16 (function h(x) { function x() {} }).blah.baz; |
|
17 } catch (e) { |
|
18 caught = true; |
|
19 } |
|
20 assertEq(caught, true); |