(source)
| 45 | |
| 46 | // Shadow variable with an eval-introduced variable. |
| 47 | function testEval(source) { |
| 48 | eval('var x = 1'); |
| 49 | function f() { |
| 50 | eval('eval('+ source + ')'); |
| 51 | } |
| 52 | f(); |
| 53 | } |
| 54 | testEval('assertEquals(1, x)'); |
| 55 | |
| 56 | // Eval that does not shadow. |
no test coverage detected