Repository navigation
Commit de48b9c
committed
fix: do not annotate the call that starts an entry
An entry runs by contract, not because something imports it, so a minifier that
drops the startup call leaves the entry unexecuted — `all-combined` built nine
cases whose bundles then registered no tests at all. Side-effect freedom says an
importer may skip a module; it does not say the entry may never run.
Refs #171211 parent 7f7ce88 commit de48b9c
6 files changed
Lines changed: 1 addition & 130 deletions
File tree
- lib/javascript
- test/configCases/side-effects/pure-entry-startup
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 106 | | |
115 | 107 | | |
116 | 108 | | |
117 | 109 | | |
118 | 110 | | |
119 | | - | |
120 | | - | |
| 111 | + | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
| |||
159 | 150 | | |
160 | 151 | | |
161 | 152 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | 153 | | |
172 | 154 | | |
173 | 155 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments