Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1615)

Unified Diff: tool/input_sdk/private/ddc_runtime/generators.dart

Issue 1962823002: fix #552, Object members on native types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/classes.dart ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/classes.dart ('k') | tool/input_sdk/private/ddc_runtime/operations.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698