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

Unified Diff: lib/runtime/dart/html_common.js

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: reverted let->const parasite change Created 4 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
Index: lib/runtime/dart/html_common.js
diff --git a/lib/runtime/dart/html_common.js b/lib/runtime/dart/html_common.js
index 9fb0e08e579778e69c10a0f6c676f58d53ec800c..5cc0dec8d17fdf2d1cbaf7657f6044c7f97ec096 100644
--- a/lib/runtime/dart/html_common.js
+++ b/lib/runtime/dart/html_common.js
@@ -10,7 +10,7 @@ dart_library.library('dart/html_common', null, /* Imports */[
'dart/collection',
'dart/_internal'
], /* Lazy imports */[
-], function(exports, dart, _metadata, core, html, typed_data, _js_helper, _native_typed_data, async, collection, _internal) {
+], function(exports, dart, _metadata, core, html, typed_data, _js_helper, _native_typed_data, $async, collection, _internal) {
'use strict';
let dartx = dart.dartx;
dart.export(exports, _metadata);
@@ -609,13 +609,13 @@ dart_library.library('dart/html_common', null, /* Imports */[
}
dart.fn(isJavaScriptPromise, core.bool, [dart.dynamic]);
function convertNativePromiseToDartFuture(promise) {
- let completer = async.Completer.new();
+ let completer = $async.Completer.new();
let then = dart.dcall(/* Unimplemented unknown name */convertDartClosureToJS, dart.fn(result => completer.complete(result), dart.void, [dart.dynamic]), 1);
let error = dart.dcall(/* Unimplemented unknown name */convertDartClosureToJS, dart.fn(result => completer.completeError(result), dart.void, [dart.dynamic]), 1);
let newPromise = promise.then(then).catch(error);
return completer.future;
}
- dart.fn(convertNativePromiseToDartFuture, async.Future, [dart.dynamic]);
+ dart.fn(convertNativePromiseToDartFuture, $async.Future, [dart.dynamic]);
class Device extends core.Object {
static get userAgent() {
return dart.as(dart.dload(html.window.navigator.raw, 'userAgent'), core.String);

Powered by Google App Engine
This is Rietveld 408576698