Commit Graph

110 Commits

Author SHA1 Message Date
Austaras
375774d31e
fix(es): Check the syntax context of arguments (#5174) 2022-07-13 10:29:03 +00:00
magic-akari
fbfca36f58 fix(es/parser): Support type-only export-import declarations (#5122) 2022-07-06 16:51:18 +09:00
Austaras
b62fd3e6cc
feat(es/parser): Support labelled function from annex B (#5078) 2022-07-02 04:45:22 +00:00
magic-akari
f238093c3b
fix(es/parser): Allow initializer of the var of for-in loop in non-strict mode (#5038) 2022-06-25 10:02:43 +00:00
Pig Fang
6bcb92598b
test(es/parser): Add a test case for instantiation expr (#5014) 2022-06-21 14:54:17 +00:00
Pig Fang
a62b2b3244
fix(es/parser): Allow instantiation expression followed by a line break or a binary operator (#5000) 2022-06-19 17:52:05 +00:00
magic-akari
53a8cb1209
fix(es/parser): Don't panic on an invalid import meta property (#4994) 2022-06-18 10:00:52 +00:00
Pig Fang
36ef3e4507
fix(es/parser): Fix binary operator parsed as an instantiation expression (#4992) 2022-06-18 03:26:39 +00:00
magic-akari
381d273f11
fix(es/parser): Check for line break after async (#4940) 2022-06-11 08:10:49 +00:00
magic-akari
11db191af5
fix(es/parser): Allow negative bigint literal in types (#4938) 2022-06-11 04:15:21 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0) for dummy spans (#4616) 2022-05-11 16:14:42 +00:00
William Tetlow
e2fde1a9a7
fix(es/parser): Revert #4287 (#4542) 2022-05-06 04:07:00 +00:00
William Tetlow
28310596a6
fix(es/parser): Revert #4067 (#4540) 2022-05-06 12:46:15 +09:00
Pig Fang
0e0ded121c
feat(es/parser): Reject accessors named constructor (#4520) 2022-05-04 05:45:57 +00:00
Pig Fang
857e798194
feat(es/parser): Reject private field called #constructor (#4491) 2022-04-30 12:56:55 +00:00
Pig Fang
393cfa84b6
fix(es/parser): Throw syntax error for missing function expr body (#4462) 2022-04-28 02:08:17 +00:00
Pig Fang
df7b3f611a
feat(es/parser): Reject indirect opt chain in assignment (#4447) 2022-04-27 03:07:57 +00:00
Pig Fang
465cc2f929
fix(es/parser): Fix top-level await with binary expr (#4426) 2022-04-25 23:10:59 +00:00
Pig Fang
6dc64c9ca0
feat(es/parser): Reject 'use strict' with non-simple params list in TS (#4416) 2022-04-24 03:04:38 +00:00
Pig Fang
da02c9dc50
feat(es/parser): Reject invalid new.target (#4406) 2022-04-23 14:45:11 +00:00
Pig Fang
c96e32243c
feat(es/parser): Reject invalid regex flags (#4404) 2022-04-23 05:43:52 +00:00
Pig Fang
59f63da560
feat(es/parser): Reject await expr with ** (#4395) 2022-04-22 01:40:14 +00:00
Donny/강동윤
bf761752f1
test(es/parser): Add a test for a fixed issue (#4357) 2022-04-17 22:44:46 +00:00
Pig Fang
31b3336cd5
fix(es/parser): Reject optional constructor call (#4340) 2022-04-16 15:18:14 +00:00
Pig Fang
ea466afdc8
fix(es/parser): Make parsing of TS InstantiationExpr more permissive (#4332) 2022-04-15 14:16:31 +00:00
Donny/강동윤
7599fe7431
fix(es/parser): Enable static blocks by default (#4334) 2022-04-15 07:31:41 +00:00
Pig Fang
1c3d1af01c
feat(es/parser): Support extends clause to infer type (#4326) 2022-04-13 19:16:15 +00:00
magic-akari
d0de5a63a0
feat(es): Support typeof with private fields (#4302) 2022-04-11 20:02:51 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting (#4304) 2022-04-11 18:45:58 +00:00
Hannes Bornö
674275c824
feat(es/parser): Report more errors (#4244) 2022-04-07 03:43:10 +00:00
William Tetlow
b89937c3c0
fix(es/parser): Adjust context in a function block (#4264) 2022-04-07 12:15:59 +09:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw to Num (#4245) 2022-04-05 12:46:35 +00:00
magic-akari
6d380ea6fa
fix(es/parser): Support error reporting for TS1274 (#4232) 2022-04-03 23:09:36 +09:00
Alexander Akait
e91f271873
feat(es/ast): Add raw to BigInt (#4218) 2022-04-02 06:04:14 +00:00
William Tetlow
99a0d34a1e
fix(es/parser): Fix parsing of an arrow and a conditional expression (#4199) 2022-03-30 22:01:31 +00:00
David Sherret
cffe5ca58e
feat(es/parser): Allow parsing files with missing close braces (#4187) 2022-03-30 20:31:24 +00:00
David Sherret
1759567fc4
chore(es/parser): Add span tests back (#4186) 2022-03-30 06:07:40 +00:00
Alexander Akait
fcf67c4570
fix(es): Consume surrogate pairs (#4115) 2022-03-28 12:18:06 +00:00
Hannes Bornö
cd7112b18b
feat(es/parser): Report more errors for invalid patterns (#4145) 2022-03-24 11:15:28 +00:00
magic-akari
f5ce79a72c
fix(es/parser): Fix logic for consuming ts modifiers (#4137) 2022-03-24 04:20:53 +00:00
William Tetlow
ab4ea9f0cb
fix(es/parser): Allow arrows without parenthesized param in typescript (#4138) 2022-03-23 22:31:19 +00:00
magic-akari
bf1924d1a8
feat(es/typescript): Support optional variance annotations (#4008) 2022-03-23 14:36:37 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw to Str (#4071) 2022-03-22 07:54:08 +00:00
Austaras
9a8fc2776e
fix(es/parser): Make let a reserved word in strict mode (#4113) 2022-03-22 04:52:10 +00:00
Donny/강동윤
61f1a37492
fix(es/codegen): Fix codes related to sourcemap (#4106) 2022-03-21 05:14:45 +00:00
Hannes Bornö
d38117d4cb
fix(es/parser): Allow parentheses in assignment target (#4105) 2022-03-20 11:56:22 +00:00
Donny/강동윤
b31ead5cbe chore: Fix CI 2022-03-20 15:25:35 +09:00
Donny/강동윤
565a7202ed chore: Fix CI 2022-03-20 00:15:03 +09:00
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors (#4082) 2022-03-19 23:56:12 +09:00
Donny/강동윤
792ab2ca25
test(es/parser): Add a test for a fixed issue (#4085) 2022-03-19 06:14:13 +00:00