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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart._runtime; 5 library dart._runtime;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread; 10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 if (typeof Animation == "undefined") { 75 if (typeof Animation == "undefined") {
76 let d = document.createElement('div'); 76 let d = document.createElement('div');
77 if (typeof d.animate != "undefined") { 77 if (typeof d.animate != "undefined") {
78 window.Animation = d.animate(d).constructor; 78 window.Animation = d.animate(d).constructor;
79 } 79 }
80 } 80 }
81 if (typeof SourceBufferList == "undefined") { 81 if (typeof SourceBufferList == "undefined") {
82 window.SourceBufferList = new MediaSource().sourceBuffers.constructor; 82 window.SourceBufferList = new MediaSource().sourceBuffers.constructor;
83 } 83 }
84 } 84 }
85 return typeof window == "undefined" ? global : window; 85 var globalState = (typeof window != "undefined") ? window
86 : (typeof global != "undefined") ? global
87 : (typeof self != "undefined") ? self : {};
88 return globalState;
86 }() 89 }()
87 '''); 90 ''');
88 91
89 final JsSymbol = JS('', 'Symbol'); 92 final JsSymbol = JS('', 'Symbol');
OLDNEW
« 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