refactor(upgrade): avoid mutable exports. (#34232)
Previously, create_angular_testing_module would export a mutable `let` binding. The binding is already exporting using an accessor function though, so the export on the let variable seems like an accidental oversight. This is functionally equivalent, but makes it easier for module optimizers such as Closure Compiler to track down side effects and prune modules. PR Close #34232
This commit is contained in:
parent
37bb90140c
commit
1084d4ab49
|
@ -12,7 +12,7 @@ import * as angular from '../../../src/common/src/angular1';
|
|||
import {$INJECTOR, INJECTOR_KEY, UPGRADE_APP_TYPE_KEY} from '../../../src/common/src/constants';
|
||||
import {UpgradeAppType} from '../../../src/common/src/util';
|
||||
|
||||
export let $injector: angular.IInjectorService|null = null;
|
||||
let $injector: angular.IInjectorService|null = null;
|
||||
let injector: Injector;
|
||||
|
||||
export function $injectorFactory() {
|
||||
|
|
Loading…
Reference in New Issue