Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(es/parser): Make error message helpful (#6535)
**Related issue:** - Closes #6525.
- Loading branch information
Showing
140 changed files
with
259 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/FunctionDeclaration8_es6.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/FunctionDeclaration8_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/YieldExpression1_es6.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/YieldExpression1_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/YieldExpression8_es6.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/YieldExpression8_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/YieldStarExpression1_es6.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/YieldStarExpression1_es6.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/generatorTypeCheck32.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/generatorTypeCheck32.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/generatorTypeCheck39.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/generatorTypeCheck39.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/generatorTypeCheck61.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/generatorTypeCheck61.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/parserComputedPropertyName37.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/parserComputedPropertyName37.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/parserInterfaceDeclaration3.1.normal.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
crates/swc/tests/tsc-references/parserInterfaceDeclaration3.2.minified.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
cb15721
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
es/full/bugs-1
343776
ns/iter (± 23225
)357364
ns/iter (± 35796
)0.96
es/full/minify/libraries/antd
2148324252
ns/iter (± 48139045
)2131237530
ns/iter (± 72038343
)1.01
es/full/minify/libraries/d3
470452780
ns/iter (± 13182185
)480329648
ns/iter (± 15777311
)0.98
es/full/minify/libraries/echarts
1780933104
ns/iter (± 52006441
)1816439044
ns/iter (± 78383203
)0.98
es/full/minify/libraries/jquery
123795604
ns/iter (± 3649211
)124948647
ns/iter (± 6799524
)0.99
es/full/minify/libraries/lodash
141301219
ns/iter (± 6877106
)145997877
ns/iter (± 32065108
)0.97
es/full/minify/libraries/moment
67553329
ns/iter (± 3807315
)73168104
ns/iter (± 2262237
)0.92
es/full/minify/libraries/react
21983187
ns/iter (± 653902
)23579280
ns/iter (± 518914
)0.93
es/full/minify/libraries/terser
372109389
ns/iter (± 11189303
)416086071
ns/iter (± 41672935
)0.89
es/full/minify/libraries/three
639157732
ns/iter (± 73834351
)658232817
ns/iter (± 29911362
)0.97
es/full/minify/libraries/typescript
3822167868
ns/iter (± 108177072
)3920999765
ns/iter (± 85016022
)0.97
es/full/minify/libraries/victory
955538507
ns/iter (± 32511372
)942921236
ns/iter (± 18143935
)1.01
es/full/minify/libraries/vue
181163799
ns/iter (± 6184765
)183013789
ns/iter (± 9555227
)0.99
es/full/codegen/es3
35406
ns/iter (± 2952
)33808
ns/iter (± 1248
)1.05
es/full/codegen/es5
34262
ns/iter (± 2022
)33630
ns/iter (± 1120
)1.02
es/full/codegen/es2015
33933
ns/iter (± 1799
)34238
ns/iter (± 3398
)0.99
es/full/codegen/es2016
33291
ns/iter (± 1449
)33937
ns/iter (± 2419
)0.98
es/full/codegen/es2017
34179
ns/iter (± 1731
)34069
ns/iter (± 894
)1.00
es/full/codegen/es2018
33371
ns/iter (± 1205
)34065
ns/iter (± 663
)0.98
es/full/codegen/es2019
33580
ns/iter (± 2392
)34470
ns/iter (± 2486
)0.97
es/full/codegen/es2020
33693
ns/iter (± 1338
)34315
ns/iter (± 2747
)0.98
es/full/all/es3
203575014
ns/iter (± 11057333
)219182420
ns/iter (± 20462811
)0.93
es/full/all/es5
183029752
ns/iter (± 8793684
)177529055
ns/iter (± 8672744
)1.03
es/full/all/es2015
148654412
ns/iter (± 8755662
)141581974
ns/iter (± 6687565
)1.05
es/full/all/es2016
146463715
ns/iter (± 11617861
)141052236
ns/iter (± 6868129
)1.04
es/full/all/es2017
147396017
ns/iter (± 6200401
)140774098
ns/iter (± 7470869
)1.05
es/full/all/es2018
145171157
ns/iter (± 15225598
)139076792
ns/iter (± 6972836
)1.04
es/full/all/es2019
146642222
ns/iter (± 7795028
)146613024
ns/iter (± 5657803
)1.00
es/full/all/es2020
144751549
ns/iter (± 9725405
)138453334
ns/iter (± 7151806
)1.05
es/full/parser
729148
ns/iter (± 41764
)724678
ns/iter (± 34459
)1.01
es/full/base/fixer
26898
ns/iter (± 918
)26866
ns/iter (± 443
)1.00
es/full/base/resolver_and_hygiene
91839
ns/iter (± 3458
)94089
ns/iter (± 4151
)0.98
serialization of ast node
217
ns/iter (± 7
)219
ns/iter (± 8
)0.99
serialization of serde
234
ns/iter (± 10
)234
ns/iter (± 10
)1
This comment was automatically generated by workflow using github-action-benchmark.