From 9d53b451ed90adc31e7d0e70bbf9ffba6991df11 Mon Sep 17 00:00:00 2001 From: Nicholas Shahan Date: Tue, 25 Oct 2022 21:55:27 +0000 Subject: [PATCH] [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 Commit-Queue: Nicholas Shahan --- sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart b/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart index 3dc6dd2ccf5..ee0d2c23ce2 100644 --- a/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart +++ b/sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart @@ -22,7 +22,6 @@ import 'dart:_runtime' as dart; /// Inspired by `co`: https://github.com/tj/co/blob/master/index.js, which is a /// stepping stone for ES async/await. @JSExportName('async') -@ReifyFunctionTypes(false) _async(Function() initGenerator) { var iter; late Object? Function(Object?) onValue;