(x, h)
| 46 | |
| 47 | // Test loading across eval calls that do not shadow variables. |
| 48 | function testNoShadowing2(x, h) { |
| 49 | eval('1'); |
| 50 | function f() { |
| 51 | eval('1'); |
| 52 | assertEquals(1, x); |
| 53 | assertEquals(2, h()); |
| 54 | function g() { |
| 55 | assertEquals(1, x); |
| 56 | assertEquals(2, h()); |
| 57 | } |
| 58 | g(); |
| 59 | } |
| 60 | f(); |
| 61 | } |
| 62 | |
| 63 | testNoShadowing2(1, function() { return 2; }); |
| 64 |
no test coverage detected