OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library dart._runtime; |
| 6 |
| 7 import 'dart:async'; |
| 8 import 'dart:collection'; |
| 9 |
| 10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread; |
| 11 import 'dart:_interceptors' show JSArray; |
| 12 import 'dart:_js_helper' show SyncIterable, CastErrorImplementation, getTraceFro
mException; |
| 13 |
| 14 part 'classes.dart'; |
| 15 part 'errors.dart'; |
| 16 part 'generators.dart'; |
| 17 part 'operations.dart'; |
| 18 part 'rtti.dart'; |
| 19 part 'types.dart'; |
| 20 part 'utils.dart'; |
| 21 |
| 22 // From dart_utils |
| 23 final defineLazyClass = JS('', '$defineLazy'); |
| 24 final defineLazyProperties = JS('', '$defineLazy'); |
| 25 final defineLazyClassGeneric = JS('', '$defineLazyProperty'); |
| 26 |
| 27 // Renames |
| 28 @JSExportName('as') |
| 29 final as_ = JS('', '$cast'); |
| 30 |
| 31 @JSExportName('is') |
| 32 final is_ = JS('', '$instanceOf'); |
| 33 |
| 34 final global = JS('', 'typeof window == "undefined" ? global : window'); |
| 35 final JsSymbol = JS('', 'Symbol'); |
| 36 |
| 37 // TODO(vsm): This is referenced (as init.globalState) from |
| 38 // isolate_helper.dart. Where should it go? |
| 39 // See: https://github.com/dart-lang/dev_compiler/issues/164 |
| 40 // exports.globalState = null; |
| 41 // TODO(ochafik). |
| 42 // _js_helper.checkNum = operations.notNull; |
OLD | NEW |