()
| 295 | } |
| 296 | |
| 297 | function x() { |
| 298 | // This tests lazy parsing. |
| 299 | return function() { |
| 300 | let log = []; |
| 301 | function run(i) { |
| 302 | log.push(i); |
| 303 | return i; |
| 304 | } |
| 305 | |
| 306 | class C { |
| 307 | [run(1)] = run(6); |
| 308 | [run(2)] = run(7); |
| 309 | [run(3)]() { run(9);} |
| 310 | [run(4)] = run(8); |
| 311 | [run(5)]() { throw new Error('should not execute');}; |
| 312 | } |
| 313 | |
| 314 | let c = new C; |
| 315 | c[3](); |
| 316 | assertEquals([1, 2, 3, 4, 5, 6, 7, 8, 9], log); |
| 317 | } |
| 318 | } |
| 319 | x()(); |
| 320 | |
| 321 | { |
no test coverage detected