@@ -506,7 +506,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
506
506
return function ( e ) {
507
507
f ( a , e ) ;
508
508
} ;
509
- } ( _foreign_helper . DART_CLOSURE_TO_JS ( IsolateNatives . _processWorkerMessage ) , this . mainManager ) ;
509
+ } ( IsolateNatives . _processWorkerMessage , this . mainManager ) ;
510
510
self . onmessage = func ;
511
511
self . dartPrint = self . dartPrint || function ( serialize ) {
512
512
return function ( object ) {
@@ -516,7 +516,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
516
516
self . postMessage ( serialize ( object ) ) ;
517
517
}
518
518
} ;
519
- } ( _foreign_helper . DART_CLOSURE_TO_JS ( _Manager . _serializePrintMessage ) ) ;
519
+ } ( _Manager . _serializePrintMessage ) ;
520
520
}
521
521
static _serializePrintMessage ( object ) {
522
522
return _serializeMessage ( dart . map ( { command : "print" , msg : object } ) ) ;
@@ -1180,14 +1180,14 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
1180
1180
return function ( e ) {
1181
1181
return f ( e , u , c ) ;
1182
1182
} ;
1183
- } ( _foreign_helper . DART_CLOSURE_TO_JS ( IsolateNatives . workerOnError ) , uri , onError ) ;
1183
+ } ( IsolateNatives . workerOnError , uri , onError ) ;
1184
1184
worker . onerror = onerrorTrampoline ;
1185
1185
let processWorkerMessageTrampoline = function ( f , a ) {
1186
1186
return function ( e ) {
1187
1187
e . onerror = null ;
1188
1188
return f ( a , e ) ;
1189
1189
} ;
1190
- } ( _foreign_helper . DART_CLOSURE_TO_JS ( IsolateNatives . _processWorkerMessage ) , worker ) ;
1190
+ } ( IsolateNatives . _processWorkerMessage , worker ) ;
1191
1191
worker . onmessage = processWorkerMessageTrampoline ;
1192
1192
let o = exports . _globalState ;
1193
1193
let workerId = o . nextManagerId ;
@@ -1459,7 +1459,7 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
1459
1459
} ;
1460
1460
dart . fn ( internalCallback , dart . void , [ ] ) ;
1461
1461
enterJsAsync ( ) ;
1462
- this [ _handle ] = self . setTimeout ( _js_helper . convertDartClosureToJS ( internalCallback , 0 ) , milliseconds ) ;
1462
+ this [ _handle ] = self . setTimeout ( internalCallback , milliseconds ) ;
1463
1463
} else {
1464
1464
dart . assert ( dart . notNull ( milliseconds ) > 0 ) ;
1465
1465
throw new core . UnsupportedError ( "Timer greater than 0." ) ;
@@ -1471,9 +1471,9 @@ dart_library.library('dart/_isolate_helper', null, /* Imports */[
1471
1471
this [ _handle ] = null ;
1472
1472
if ( dart . notNull ( hasTimer ( ) ) ) {
1473
1473
enterJsAsync ( ) ;
1474
- this [ _handle ] = self . setInterval ( _js_helper . convertDartClosureToJS ( dart . fn ( ( ) => {
1474
+ this [ _handle ] = self . setInterval ( dart . fn ( ( ) => {
1475
1475
callback ( this ) ;
1476
- } ) , 0 ) , milliseconds ) ;
1476
+ } ) , milliseconds ) ;
1477
1477
} else {
1478
1478
throw new core . UnsupportedError ( "Periodic timer." ) ;
1479
1479
}
0 commit comments