()
| 47 | |
| 48 | // Test calls to local strict mode function with implicit receiver. |
| 49 | function local_function_test() { |
| 50 | function get_y() { return this.y; } |
| 51 | function strict_get_y() { "use strict"; return this.y; } |
| 52 | assertEquals(3, get_y()); |
| 53 | assertEquals(3, get_y(23)); |
| 54 | var exception = false; |
| 55 | try { |
| 56 | strict_get_y(); |
| 57 | } catch(e) { |
| 58 | exception = true; |
| 59 | } |
| 60 | assertTrue(exception); |
| 61 | } |
| 62 | |
| 63 | for (var i = 0; i < 10; i++) { |
| 64 | local_function_test(); |
no test coverage detected