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

Unified Diff: sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « sdk/lib/_internal/compiler/compiler.dart ('k') | sdk/lib/_internal/compiler/implementation/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/apiimpl.dart
diff --git a/sdk/lib/_internal/compiler/implementation/apiimpl.dart b/sdk/lib/_internal/compiler/implementation/apiimpl.dart
index 73c4f28ff29f76946881befcb0033c596a32cd12..f6434a018f9b6571bcb6a391eddf68fcf186f660 100644
--- a/sdk/lib/_internal/compiler/implementation/apiimpl.dart
+++ b/sdk/lib/_internal/compiler/implementation/apiimpl.dart
@@ -5,6 +5,7 @@
library leg_apiimpl;
import 'dart:uri';
+import 'dart:async';
import '../compiler.dart' as api;
import 'dart2jslib.dart' as leg;
@@ -107,7 +108,7 @@ class Compiler extends leg.Compiler {
try {
// TODO(ahe): We expect the future to be complete and call value
// directly. In effect, we don't support truly asynchronous API.
- text = provider(translated).value;
+ text = deprecatedFutureValue(provider(translated));
} catch (exception) {
if (node != null) {
cancel("$exception", node: node);
« no previous file with comments | « sdk/lib/_internal/compiler/compiler.dart ('k') | sdk/lib/_internal/compiler/implementation/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698