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