Chromium Code Reviews| 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 ConstantMap, | |
|
sra1
2016/05/10 23:05:24
Drop this?
Harry Terkelsen
2016/05/10 23:24:49
Done.
| |
| 10 getRuntimeType, | 11 getRuntimeType, |
| 11 jsonEncodeNative, | 12 jsonEncodeNative, |
| 13 JsLinkedHashMap, | |
| 12 JSSyntaxRegExp, | 14 JSSyntaxRegExp, |
| 13 Primitives, | 15 Primitives, |
| 14 stringJoinUnchecked, | 16 stringJoinUnchecked, |
| 15 objectHashCode, | 17 objectHashCode, |
| 16 getTraceFromException; | 18 getTraceFromException; |
| 17 | 19 |
| 18 import 'dart:_foreign_helper' show JS; | 20 import 'dart:_foreign_helper' show JS; |
| 19 | 21 |
| 20 import 'dart:_native_typed_data' show NativeUint8List; | 22 import 'dart:_native_typed_data' show NativeUint8List; |
| 21 | 23 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 569 return getTraceFromException(error); | 571 return getTraceFromException(error); |
| 570 } | 572 } |
| 571 // Fallback if Error.captureStackTrace does not exist. | 573 // Fallback if Error.captureStackTrace does not exist. |
| 572 try { | 574 try { |
| 573 throw ''; | 575 throw ''; |
| 574 } catch (_, stackTrace) { | 576 } catch (_, stackTrace) { |
| 575 return stackTrace; | 577 return stackTrace; |
| 576 } | 578 } |
| 577 } | 579 } |
| 578 } | 580 } |
| OLD | NEW |