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 13 matching lines...) Expand all Loading... |
24 final defineLazyProperties = JS('', '$defineLazy'); | 24 final defineLazyProperties = JS('', '$defineLazy'); |
25 final defineLazyClassGeneric = JS('', '$defineLazyProperty'); | 25 final defineLazyClassGeneric = JS('', '$defineLazyProperty'); |
26 | 26 |
27 // Renames | 27 // Renames |
28 @JSExportName('as') | 28 @JSExportName('as') |
29 final as_ = JS('', '$cast'); | 29 final as_ = JS('', '$cast'); |
30 | 30 |
31 @JSExportName('is') | 31 @JSExportName('is') |
32 final is_ = JS('', '$instanceOf'); | 32 final is_ = JS('', '$instanceOf'); |
33 | 33 |
34 final global = JS('', 'typeof window == "undefined" ? global : window'); | 34 @JSExportName('global') |
| 35 final global_ = JS('', 'typeof window == "undefined" ? global : window'); |
35 final JsSymbol = JS('', 'Symbol'); | 36 final JsSymbol = JS('', 'Symbol'); |
36 | 37 |
37 // TODO(vsm): This is referenced (as init.globalState) from | 38 // TODO(vsm): This is referenced (as init.globalState) from |
38 // isolate_helper.dart. Where should it go? | 39 // isolate_helper.dart. Where should it go? |
39 // See: https://github.com/dart-lang/dev_compiler/issues/164 | 40 // See: https://github.com/dart-lang/dev_compiler/issues/164 |
40 // exports.globalState = null; | 41 // exports.globalState = null; |
41 // TODO(ochafik). | 42 // TODO(ochafik). |
42 // _js_helper.checkNum = operations.notNull; | 43 // _js_helper.checkNum = operations.notNull; |
OLD | NEW |