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): Add
allow_return_outside_function
to options (#5046)
- Loading branch information
1 parent
b364828
commit 37eb366
Showing
6 changed files
with
40 additions
and
18 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
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
2 changes: 1 addition & 1 deletion
2
crates/swc_html_minifier/tests/fixture/attribute/onclick/output.min.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><a href=http://www.google.co.uk/ onclick="return (confirm('Follow' + ' this link?'))">Google</a> | ||
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"><meta http-equiv=X-UA-Compatible content="ie=edge"><title>Document</title><a href=http://www.google.co.uk/ onclick='return confirm("Follow this link?")'>Google</a> | ||
<a href=http://www.google.co.uk/ onclick='alert("testtest")'>Google</a> |
37eb366
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/minify/libraries/antd
1611688054
ns/iter (± 34880078
)1598090234
ns/iter (± 120729858
)1.01
es/full/minify/libraries/d3
408947317
ns/iter (± 8702381
)387933276
ns/iter (± 18649284
)1.05
es/full/minify/libraries/echarts
1616676754
ns/iter (± 28378701
)1573205227
ns/iter (± 56641799
)1.03
es/full/minify/libraries/jquery
88842176
ns/iter (± 3546112
)84773129
ns/iter (± 9545938
)1.05
es/full/minify/libraries/lodash
118955893
ns/iter (± 3618300
)111387514
ns/iter (± 4664599
)1.07
es/full/minify/libraries/moment
52464927
ns/iter (± 1500861
)49954211
ns/iter (± 1790175
)1.05
es/full/minify/libraries/react
17266991
ns/iter (± 387842
)17317196
ns/iter (± 632632
)1.00
es/full/minify/libraries/terser
600576627
ns/iter (± 8122486
)570877488
ns/iter (± 13074394
)1.05
es/full/minify/libraries/three
539213594
ns/iter (± 3253418
)520773333
ns/iter (± 8703477
)1.04
es/full/minify/libraries/typescript
3411915071
ns/iter (± 41710358
)3331149938
ns/iter (± 71886157
)1.02
es/full/minify/libraries/victory
716878445
ns/iter (± 9831378
)696542765
ns/iter (± 19511375
)1.03
es/full/minify/libraries/vue
135643691
ns/iter (± 2384318
)128645727
ns/iter (± 7451414
)1.05
es/full/codegen/es3
31897
ns/iter (± 606
)30461
ns/iter (± 1097
)1.05
es/full/codegen/es5
31820
ns/iter (± 801
)30462
ns/iter (± 1614
)1.04
es/full/codegen/es2015
31889
ns/iter (± 442
)30864
ns/iter (± 1586
)1.03
es/full/codegen/es2016
31903
ns/iter (± 453
)30737
ns/iter (± 1005
)1.04
es/full/codegen/es2017
31823
ns/iter (± 505
)30386
ns/iter (± 686
)1.05
es/full/codegen/es2018
31604
ns/iter (± 821
)30161
ns/iter (± 1565
)1.05
es/full/codegen/es2019
31748
ns/iter (± 1001
)30391
ns/iter (± 935
)1.04
es/full/codegen/es2020
31691
ns/iter (± 1423
)30235
ns/iter (± 1055
)1.05
es/full/all/es3
190063899
ns/iter (± 5026586
)177382501
ns/iter (± 4841909
)1.07
es/full/all/es5
176181189
ns/iter (± 7788535
)166295076
ns/iter (± 5152485
)1.06
es/full/all/es2015
143890058
ns/iter (± 4944295
)135673456
ns/iter (± 3794241
)1.06
es/full/all/es2016
145196750
ns/iter (± 6266643
)134230869
ns/iter (± 6042529
)1.08
es/full/all/es2017
139220533
ns/iter (± 5388065
)133801672
ns/iter (± 3246701
)1.04
es/full/all/es2018
138401317
ns/iter (± 4378116
)132147741
ns/iter (± 6354587
)1.05
es/full/all/es2019
140306059
ns/iter (± 4521637
)131958575
ns/iter (± 2908998
)1.06
es/full/all/es2020
134672073
ns/iter (± 5647985
)127159964
ns/iter (± 4034007
)1.06
es/full/parser
724852
ns/iter (± 12409
)681717
ns/iter (± 18763
)1.06
es/full/base/fixer
29742
ns/iter (± 328
)28467
ns/iter (± 1449
)1.04
es/full/base/resolver_and_hygiene
87552
ns/iter (± 3221
)85362
ns/iter (± 4373
)1.03
serialization of ast node
215
ns/iter (± 5
)194
ns/iter (± 12
)1.11
serialization of serde
229
ns/iter (± 1
)215
ns/iter (± 6
)1.07
This comment was automatically generated by workflow using github-action-benchmark.