| 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; |
| 11 import 'dart:_interceptors' show JSArray; | 11 import 'dart:_interceptors' show JSArray; |
| 12 import 'dart:_js_helper' show SyncIterable, BooleanConversionAssertionError, | 12 import 'dart:_js_helper' show SyncIterable, BooleanConversionAssertionError, |
| 13 CastErrorImplementation, TypeErrorImplementation, | 13 CastErrorImplementation, TypeErrorImplementation, |
| 14 StrongModeCastError, StrongModeTypeError, StrongModeErrorImplementation, | 14 StrongModeCastError, StrongModeTypeError, StrongModeErrorImplementation, |
| 15 getTraceFromException; | 15 getTraceFromException, Primitives; |
| 16 | 16 |
| 17 part 'classes.dart'; | 17 part 'classes.dart'; |
| 18 part 'rtti.dart'; |
| 19 part 'types.dart'; |
| 18 part 'errors.dart'; | 20 part 'errors.dart'; |
| 19 part 'generators.dart'; | 21 part 'generators.dart'; |
| 20 part 'operations.dart'; | 22 part 'operations.dart'; |
| 21 part 'rtti.dart'; | |
| 22 part 'types.dart'; | |
| 23 part 'utils.dart'; | 23 part 'utils.dart'; |
| 24 | 24 |
| 25 @JSExportName('global') | 25 @JSExportName('global') |
| 26 final global_ = JS('', 'typeof window == "undefined" ? global : window'); | 26 final global_ = JS('', 'typeof window == "undefined" ? global : window'); |
| 27 final JsSymbol = JS('', 'Symbol'); | 27 final JsSymbol = JS('', 'Symbol'); |
| 28 | 28 |
| 29 // TODO(vsm): This is referenced (as init.globalState) from | 29 // TODO(vsm): This is referenced (as init.globalState) from |
| 30 // isolate_helper.dart. Where should it go? | 30 // isolate_helper.dart. Where should it go? |
| 31 // See: https://github.com/dart-lang/dev_compiler/issues/164 | 31 // See: https://github.com/dart-lang/dev_compiler/issues/164 |
| 32 // exports.globalState = null; | 32 // exports.globalState = null; |
| 33 // TODO(ochafik). | 33 // TODO(ochafik). |
| 34 // _js_helper.checkNum = operations.notNull; | 34 // _js_helper.checkNum = operations.notNull; |
| OLD | NEW |