File tree 3 files changed +7
-11
lines changed
test/generated_sdk/lib/_internal/compiler/js_lib
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -778,12 +778,13 @@ var async = dart.import(async);
778
778
}
779
779
[ _runHelper ] ( ) {
780
780
if ( exports . globalWindow != null ) {
781
+ // Function next: () → dynamic
781
782
let next = ( ( ) => {
782
783
if ( ! dart . notNull ( this . runIteration ( ) ) )
783
784
return ;
784
- async . Timer . run ( dart . as ( next , __CastType2 ) ) ;
785
+ async . Timer . run ( next ) ;
785
786
} ) . bind ( this ) ;
786
- dart . dcall ( next ) ;
787
+ next ( ) ;
787
788
} else {
788
789
while ( this . runIteration ( ) ) {
789
790
}
@@ -1381,7 +1382,6 @@ var async = dart.import(async);
1381
1382
}
1382
1383
CapabilityImpl [ dart . implements ] = ( ) => [ isolate . Capability ] ;
1383
1384
dart . defineNamedConstructor ( CapabilityImpl , '_internal' ) ;
1384
- let __CastType2 = dart . typedef ( '__CastType2' , ( ) => dart . functionType ( dart . void , [ ] ) ) ;
1385
1385
// Exports:
1386
1386
exports . enterJsAsync = enterJsAsync ;
1387
1387
exports . leaveJsAsync = leaveJsAsync ;
Original file line number Diff line number Diff line change @@ -652,12 +652,10 @@ class _EventLoop {
652
652
void _runHelper () {
653
653
if (globalWindow != null ) {
654
654
// Run each iteration from the browser's top event loop.
655
- // TODO(vsm): Revert to original pattern.
656
- // See: https://github.com/dart-lang/dev_compiler/issues/177
657
- Function next = () {
655
+ next () {
658
656
if (! runIteration ()) return ;
659
657
Timer .run (next);
660
- };
658
+ }
661
659
next ();
662
660
} else {
663
661
// Run synchronously until no more iterations are available.
Original file line number Diff line number Diff line change @@ -652,12 +652,10 @@ class _EventLoop {
652
652
void _runHelper () {
653
653
if (globalWindow != null ) {
654
654
// Run each iteration from the browser's top event loop.
655
- // TODO(vsm): Revert to original pattern.
656
- // See: https://github.com/dart-lang/dev_compiler/issues/177
657
- Function next = () {
655
+ next () {
658
656
if (! runIteration ()) return ;
659
657
Timer .run (next);
660
- };
658
+ }
661
659
next ();
662
660
} else {
663
661
// Run synchronously until no more iterations are available.
You can’t perform that action at this time.
0 commit comments