| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Patch file for dart:core classes. | 5 // Patch file for dart:core classes. |
| 6 import "dart:_internal" as _symbol_dev; | 6 import "dart:_internal" as _symbol_dev; |
| 7 import 'dart:_interceptors'; | 7 import 'dart:_interceptors'; |
| 8 import 'dart:_js_helper' show patch, | 8 import 'dart:_js_helper' show patch, |
| 9 checkInt, | 9 checkInt, |
| 10 getRuntimeType, | 10 getRuntimeType, |
| 11 jsonEncodeNative, | 11 jsonEncodeNative, |
| 12 JsLinkedHashMap, |
| 12 JSSyntaxRegExp, | 13 JSSyntaxRegExp, |
| 13 Primitives, | 14 Primitives, |
| 14 stringJoinUnchecked, | 15 stringJoinUnchecked, |
| 15 objectHashCode, | 16 objectHashCode, |
| 16 getTraceFromException; | 17 getTraceFromException; |
| 17 | 18 |
| 18 import 'dart:_foreign_helper' show JS; | 19 import 'dart:_foreign_helper' show JS; |
| 19 | 20 |
| 20 import 'dart:_native_typed_data' show NativeUint8List; | 21 import 'dart:_native_typed_data' show NativeUint8List; |
| 21 | 22 |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 return getTraceFromException(error); | 612 return getTraceFromException(error); |
| 612 } | 613 } |
| 613 // Fallback if Error.captureStackTrace does not exist. | 614 // Fallback if Error.captureStackTrace does not exist. |
| 614 try { | 615 try { |
| 615 throw ''; | 616 throw ''; |
| 616 } catch (_, stackTrace) { | 617 } catch (_, stackTrace) { |
| 617 return stackTrace; | 618 return stackTrace; |
| 618 } | 619 } |
| 619 } | 620 } |
| 620 } | 621 } |
| OLD | NEW |