File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -861,9 +861,7 @@ function createInjector(modulesToLoad, strictDi) {
861861 return fn . apply ( self , args ) ;
862862 } else {
863863 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 ) ) ( ) ;
867865 }
868866 }
869867
@@ -875,9 +873,7 @@ function createInjector(modulesToLoad, strictDi) {
875873 var args = injectionArgs ( Type , locals , serviceName ) ;
876874 // Empty object at position 0 is ignored for invocation with `new`, but required.
877875 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 ) ) ( ) ;
881877 }
882878
883879
You can’t perform that action at this time.
0 commit comments