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