mirror of
https://github.com/dart-lang/sdk
synced 2024-09-22 11:52:47 +00:00
- Move VM specific helpers to the common dart:io patch file.
Review URL: https://codereview.chromium.org//812673009 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42675 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
7aa23bdf10
commit
8609239930
|
@ -6,3 +6,11 @@ patch class _IOCrypto {
|
|||
/* patch */ static Uint8List getRandomBytes(int count)
|
||||
native "Crypto_GetRandomBytes";
|
||||
}
|
||||
|
||||
|
||||
// Provide a closure which will allocate a Timer object to be able to hook
|
||||
// up the Timer interface in dart:isolate with the implementation here.
|
||||
_getTimerFactoryClosure() {
|
||||
runTimerClosure = _Timer._handleTimeout;
|
||||
return _Timer._factory;
|
||||
}
|
||||
|
|
|
@ -411,10 +411,3 @@ class _Timer implements Timer {
|
|||
return new _Timer(milliSeconds, callback);
|
||||
}
|
||||
}
|
||||
|
||||
// Provide a closure which will allocate a Timer object to be able to hook
|
||||
// up the Timer interface in dart:isolate with the implementation here.
|
||||
_getTimerFactoryClosure() {
|
||||
runTimerClosure = _Timer._handleTimeout;
|
||||
return _Timer._factory;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue