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

Unified Diff: tool/input_sdk/lib/html/html_common/conversions_dart2js.dart

Issue 1700153002: Wrapperless dart:html and friends (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: A couple more tweaks Created 4 years, 10 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/lib/html/ddc/html_ddc.dart ('k') | tool/input_sdk/lib/html/html_common/device.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/lib/html/html_common/conversions_dart2js.dart
diff --git a/tool/input_sdk/lib/html/html_common/conversions_dart2js.dart b/tool/input_sdk/lib/html/html_common/conversions_dart2js.dart
index aea9da0d136439903d04501a5c9c422cfd28765f..1556dc8961c1770cbba47a75bd835ba9ce549aad 100644
--- a/tool/input_sdk/lib/html/html_common/conversions_dart2js.dart
+++ b/tool/input_sdk/lib/html/html_common/conversions_dart2js.dart
@@ -88,12 +88,13 @@ Future convertNativePromiseToDartFuture(promise) {
var completer = new Completer();
var then = convertDartClosureToJS((result) => completer.complete(result), 1);
var error = convertDartClosureToJS((result) => completer.completeError(result), 1);
- var newPromise = JS('', '#.then(#).catch(#)', promise, then, error);
+ var newPromise = JS('', '#.then(#)["catch"](#)', promise, then, error);
return completer.future;
}
+// TODO(vsm,jacobr): We shouldn't need to expose these.
/// Wrap a JS object with an instance of the matching dart:html class. Used only in Dartium.
-//wrap_jso(jsObject) => jsObject;
+wrap_jso(jsObject) => jsObject;
/// Find the underlying JS object for a dart:html Dart object.
-//unwrap_jso(dartClass_instance) => dartClass_instance;
+unwrap_jso(dartClass_instance) => dartClass_instance;
« no previous file with comments | « tool/input_sdk/lib/html/ddc/html_ddc.dart ('k') | tool/input_sdk/lib/html/html_common/device.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698