mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[ddc] Add types to tearoffs in dart:async patch
These functions were never tagged with types but they do get used in type tests. Adding the types ensures they work correctly in the new runtime type system. Change-Id: I01a2716504072c0b2148ba13167da9814253e9bf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/265566 Reviewed-by: Mark Zhou <markzipan@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
parent
9896f1c647
commit
9d53b451ed
|
@ -22,7 +22,6 @@ import 'dart:_runtime' as dart;
|
||||||
/// Inspired by `co`: https://github.com/tj/co/blob/master/index.js, which is a
|
/// Inspired by `co`: https://github.com/tj/co/blob/master/index.js, which is a
|
||||||
/// stepping stone for ES async/await.
|
/// stepping stone for ES async/await.
|
||||||
@JSExportName('async')
|
@JSExportName('async')
|
||||||
@ReifyFunctionTypes(false)
|
|
||||||
_async<T>(Function() initGenerator) {
|
_async<T>(Function() initGenerator) {
|
||||||
var iter;
|
var iter;
|
||||||
late Object? Function(Object?) onValue;
|
late Object? Function(Object?) onValue;
|
||||||
|
|
Loading…
Reference in a new issue