This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 2 files changed +1
-26
lines changed 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,7 @@ var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
71
71
var $injectorMinErr = minErr ( '$injector' ) ;
72
72
73
73
function stringifyFn ( fn ) {
74
- // Support: Chrome 50-51 only
75
- // Creating a new string by adding `' '` at the end, to hack around some bug in Chrome v50/51
76
- // (See https://github.com/angular/angular.js/issues/14487.)
77
- // TODO (gkalpak): Remove workaround when Chrome v52 is released
78
- return Function . prototype . toString . call ( fn ) + ' ' ;
74
+ return Function . prototype . toString . call ( fn ) ;
79
75
}
80
76
81
77
function extractArgs ( fn ) {
Original file line number Diff line number Diff line change @@ -284,14 +284,6 @@ describe('injector', function() {
284
284
// eslint-disable-next-line no-eval
285
285
expect ( annotate ( eval ( 'a => b => b' ) ) ) . toEqual ( [ 'a' ] ) ;
286
286
} ) ;
287
-
288
- // Support: Chrome 50-51 only
289
- // TODO (gkalpak): Remove when Chrome v52 is released.
290
- // it('should be able to inject fat-arrow function', function() {
291
- // inject(($injector) => {
292
- // expect($injector).toBeDefined();
293
- // });
294
- // });
295
287
}
296
288
297
289
if ( support . classes ) {
@@ -324,19 +316,6 @@ describe('injector', function() {
324
316
expect ( instance ) . toEqual ( jasmine . any ( Clazz ) ) ;
325
317
} ) ;
326
318
}
327
-
328
- // Support: Chrome 50-51 only
329
- // TODO (gkalpak): Remove when Chrome v52 is released.
330
- // it('should be able to invoke classes', function() {
331
- // class Test {
332
- // constructor($injector) {
333
- // this.$injector = $injector;
334
- // }
335
- // }
336
- // var instance = injector.invoke(Test, null, null, 'Test');
337
-
338
- // expect(instance.$injector).toBe(injector);
339
- // });
340
319
}
341
320
} ) ;
342
321
You can’t perform that action at this time.
0 commit comments