| OLD | NEW |
| 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 Loading... |
| 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'); |
| OLD | NEW |