mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
6e7ef195a5
For APF v13, terser has been updated to v5, and the prodmode output has changed from ES2015 to ES2020. This results in some changes in the symbol extractor test. Here are the two causes of changes: * As said in the previous commit, Terser drops the initializer for variables which are set to `undefined`. We have updated the symbol extractor to always capture such declarations w/o initializer now. This means that a couple of declarations that a couple of new symbols are captured now. These previously didn't have an initializer even without Terser, and just didn't show up before. * Terser changed its inline mechanism for functions that recursively call themselves. Such functions are no longer inlined and therefore show up in goldens now. PR Close #43431