Linus Groh
80bb62b9cc
LibJS: Distinguish between statement and declaration
...
This separates matching/parsing of statements and declarations and
fixes a few edge cases where the parser would incorrectly accept a
declaration where only a statement is allowed - for example:
if (foo) const a = 1;
for (var bar;;) function b() {}
while (baz) class c {}
2020-10-23 19:13:06 +02:00
..
2020-10-17 23:20:31 +02:00
2020-10-22 18:58:53 +02:00
2020-10-17 23:20:31 +02:00
2020-10-02 16:03:17 +02:00
2020-10-21 21:16:20 +02:00
2020-09-30 21:46:59 +02:00
2020-10-20 18:08:13 +02:00
2020-10-03 12:36:49 +02:00
2020-09-25 21:18:17 +02:00
2020-09-15 21:43:29 +02:00
2020-10-03 12:36:49 +02:00
2020-10-06 20:29:11 +02:00
2020-10-23 12:01:14 +02:00
2020-10-23 19:04:51 +02:00
2020-09-28 11:55:26 +02:00
2020-10-02 15:38:07 +02:00
2020-10-04 23:12:28 +02:00
2020-10-23 19:13:06 +02:00
2020-10-22 23:49:51 +02:00
2020-09-25 21:18:17 +02:00
2020-09-27 21:14:18 +02:00
2020-10-02 15:38:07 +02:00
2020-09-25 21:18:17 +02:00
2020-10-04 00:16:40 +02:00
2020-09-26 17:18:21 +02:00
2020-10-02 16:03:17 +02:00
2020-10-02 16:03:17 +02:00
2020-10-02 16:03:17 +02:00
2020-10-23 08:33:16 +02:00
2020-10-20 18:08:13 +02:00
2020-10-04 00:16:40 +02:00