| 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 class Error { | 5 patch class Error { |
| 6 /* patch */ static String _objectToString(Object object) { | 6 /* patch */ static String _objectToString(Object object) { |
| 7 return Object._toString(object); | 7 return Object._toString(object); |
| 8 } | 8 } |
| 9 | 9 |
| 10 // TODO(11680): implement stackTrace on Error. | 10 /* patch */ StackTrace get stackTrace => _stackTrace; |
| 11 /* patch */ StackTrace get stackTrace => null; | 11 |
| 12 StackTrace _stackTrace; |
| 12 } | 13 } |
| 13 | 14 |
| 14 patch class NoSuchMethodError { | 15 patch class NoSuchMethodError { |
| 15 // The compiler emits a call to _throwNew when it cannot resolve a static | 16 // The compiler emits a call to _throwNew when it cannot resolve a static |
| 16 // method at compile time. The receiver is actually the literal class of the | 17 // method at compile time. The receiver is actually the literal class of the |
| 17 // unresolved method. | 18 // unresolved method. |
| 18 static void _throwNew(Object receiver, | 19 static void _throwNew(Object receiver, |
| 19 String memberName, | 20 String memberName, |
| 20 int invocation_type, | 21 int invocation_type, |
| 21 List arguments, | 22 List arguments, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 return msg_buf.toString(); | 177 return msg_buf.toString(); |
| 177 } | 178 } |
| 178 } | 179 } |
| 179 | 180 |
| 180 class _FiftyThreeBitOverflowError extends Error { | 181 class _FiftyThreeBitOverflowError extends Error { |
| 181 final Object _value; | 182 final Object _value; |
| 182 | 183 |
| 183 _FiftyThreeBitOverflowError(this._value); | 184 _FiftyThreeBitOverflowError(this._value); |
| 184 String toString() => "53-bit Overflow: $_value"; | 185 String toString() => "53-bit Overflow: $_value"; |
| 185 } | 186 } |
| OLD | NEW |