Skip to content

Commit 2726f28

Browse files
refactor(javascript): type terser's nodes and own evaluation, inference and effect dropping (#22369)
* refactor(javascript): type terser's nodes, tokens and scopes in the printer * refactor(javascript): own the compressor's evaluation, inference and effect dropping * test: cover the printer's compressor phases with the minify corpora and parity cases
1 parent 864547a commit 2726f28

7 files changed

Lines changed: 3486 additions & 47 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,12 @@ jobs:
296296
script: test:test262-parser
297297
# Minifies every source of each JS corpus with the published minifier
298298
# and with webpack's own: the same bytes back, and where a test says
299-
# what its input prints, an output printing it too.
299+
# what its input prints, an output printing it too. It uploads, as
300+
# the one suite reaching every compressor phase the printer owns.
300301
- language: minify-corpora
301302
submodules: test/external/terser test/external/test262-cases test/external/swc
302-
script: test:minify-corpora
303+
script: cover:minify-corpora
304+
flags: minify-corpora
303305
runs-on: ubuntu-latest
304306
# Bounded: the js leg allows ten minutes per area per mode, so a stall
305307
# would otherwise hold a runner for the 6h default.

‎codecov.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ coverage:
1717
- css-parsing
1818
- html5lib
1919
- test262
20+
- minify-corpora
2021
target: auto
2122
patch:
2223
default:

‎cspell.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@
441441
"shadowrootserializable",
442442
"shama",
443443
"shellcheck",
444+
"shortcircuited",
444445
"skypack",
445446
"slateblue",
446447
"slsh",
@@ -517,6 +518,7 @@
517518
"typebox",
518519
"typechecker",
519520
"typeof",
521+
"typeofs",
520522
"ufeff",
521523
"uncacheable",
522524
"undefine",

0 commit comments

Comments
 (0)