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

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

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged master 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
« no previous file with comments | « lib/runtime/dart/_runtime.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html.js
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js
index db449c15b49f951937fa4364741cac58e6b664a6..1495e6ebeaddfb5a9590a6d356ab0020f3519503 100644
--- a/lib/runtime/dart/html.js
+++ b/lib/runtime/dart/html.js
@@ -12427,7 +12427,7 @@ dart_library.library('dart/html', null, /* Imports */[
Platform.supportsSimd = false;
dart.defineLazyProperties(Platform, {
get supportsTypedData() {
- return !!window.ArrayBuffer;
+ return !!dart.global.ArrayBuffer;
}
});
function _wrapZone(callback) {
@@ -12667,10 +12667,12 @@ dart_library.library('dart/html', null, /* Imports */[
sanitizeNode: [dart.void, [Node, Node]]
})
});
- dart.copyProperties(exports, {
+ dart.defineLazyProperties(exports, {
get window() {
- return dart.as(wrap_jso(window), Window);
- },
+ return dart.as(wrap_jso(dart.global), Window);
+ }
+ });
+ dart.copyProperties(exports, {
get document() {
return dart.as(wrap_jso(document), HtmlDocument);
}
« no previous file with comments | « lib/runtime/dart/_runtime.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698