File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -861,9 +861,7 @@ function createInjector(modulesToLoad, strictDi) {
861
861
return fn . apply ( self , args ) ;
862
862
} else {
863
863
args . unshift ( null ) ;
864
- /*jshint -W058 */ // Applying a constructor without immediate parentheses is the point here.
865
- return new ( Function . prototype . bind . apply ( fn , args ) ) ;
866
- /*jshint +W058 */
864
+ return new ( Function . prototype . bind . apply ( fn , args ) ) ( ) ;
867
865
}
868
866
}
869
867
@@ -875,9 +873,7 @@ function createInjector(modulesToLoad, strictDi) {
875
873
var args = injectionArgs ( Type , locals , serviceName ) ;
876
874
// Empty object at position 0 is ignored for invocation with `new`, but required.
877
875
args . unshift ( null ) ;
878
- /*jshint -W058 */ // Applying a constructor without immediate parentheses is the point here.
879
- return new ( Function . prototype . bind . apply ( ctor , args ) ) ;
880
- /*jshint +W058 */
876
+ return new ( Function . prototype . bind . apply ( ctor , args ) ) ( ) ;
881
877
}
882
878
883
879
You can’t perform that action at this time.
0 commit comments