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

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart

Issue 2701963002: Enable DDC output to run on v8/d8 using ES6 modules (Closed)
Patch Set: Created 3 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 | « pkg/dev_compiler/test/codegen_expected/node_modules.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
index fb474012aadd30111dc8d51084aa5d281e653e44..eb3b1e00e52166115264f00587597d60e01aeafe 100644
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart
@@ -82,7 +82,10 @@ final global_ = JS('', '''
window.SourceBufferList = new MediaSource().sourceBuffers.constructor;
}
}
- return typeof window == "undefined" ? global : window;
+ var globalState = (typeof window != "undefined") ? window
+ : (typeof global != "undefined") ? global
+ : (typeof self != "undefined") ? self : {};
+ return globalState;
}()
''');
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/node_modules.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698