Commit 241632a
committed
feat(code size): make assertionsEnabled() statically computable by dart2js
Our existing implementation prevented dart2js from statically deducing the
return value. This fix does not yet result in better tree-shaking due to the
following dart2js bugs:
dart-lang/sdk#24354
dart-lang/sdk#24355
Closes angular#41981 parent 06f0d6c commit 241632a
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | 246 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
257 | 251 | | |
258 | 252 | | |
259 | 253 | | |
| |||
0 commit comments