Index: tool/input_sdk/private/ddc_runtime/generators.dart |
diff --git a/tool/input_sdk/private/ddc_runtime/generators.dart b/tool/input_sdk/private/ddc_runtime/generators.dart |
index 2b6c6dc4f054dec2c8204d329a5ea397f28e163f..4c1f17aecbe6ccf8e4276e2208156d61ccedcbd5 100644 |
--- a/tool/input_sdk/private/ddc_runtime/generators.dart |
+++ b/tool/input_sdk/private/ddc_runtime/generators.dart |
@@ -45,7 +45,7 @@ async_(gen, T, @rest args) => JS('', '''(() => { |
future = $Future.value(future); |
} |
// Chain the Future so `await` receives the Future's value. |
- return future.then($dynamicR)(onValue, {onError: onError}); |
+ return future.then($dynamic)(onValue, {onError: onError}); |
} |
return ${getGenericClass(Future)}(T).new(function() { |
iter = $gen(...$args)[Symbol.iterator](); |
@@ -164,7 +164,7 @@ final _AsyncStarStreamController = JS('', ''' |
if (!$instanceOf(future, ${getGenericClass(Future)})) { |
future = $Future.value(future); |
} |
- return future.then($dynamicR)((x) => this.runBody(x), |
+ return future.then($dynamic)((x) => this.runBody(x), |
{ onError: (e, s) => this.throwError(e, s) }); |
} |
@@ -189,7 +189,7 @@ final _AsyncStarStreamController = JS('', ''' |
if (!this.controller.hasListener) return true; |
this.isAdding = true; |
- this.controller.addStream(stream, {cancelOnError: false}).then($dynamicR)( |
+ this.controller.addStream(stream, {cancelOnError: false}).then($dynamic)( |
() => { |
this.isAdding = false; |
this.scheduleGenerator(); |