| 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 /* patch */ StackTrace get stackTrace => _stackTrace; | 10 /* patch */ StackTrace get stackTrace => _stackTrace; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 "NoSuchMethodError: incorrect number of arguments passed to " | 171 "NoSuchMethodError: incorrect number of arguments passed to " |
| 172 "method named '$_memberName'\n" | 172 "method named '$_memberName'\n" |
| 173 "Receiver: $receiver_str\n" | 173 "Receiver: $receiver_str\n" |
| 174 "Tried calling: $_memberName($actualParameters)\n" | 174 "Tried calling: $_memberName($actualParameters)\n" |
| 175 "Found: $_memberName($formalParameters)"); | 175 "Found: $_memberName($formalParameters)"); |
| 176 } | 176 } |
| 177 return msg_buf.toString(); | 177 return msg_buf.toString(); |
| 178 } | 178 } |
| 179 } | 179 } |
| 180 | 180 |
| 181 class _FiftyThreeBitOverflowError extends Error { | 181 class _JavascriptIntegerOverflowError extends Error { |
| 182 final Object _value; | 182 final Object _value; |
| 183 | 183 |
| 184 _FiftyThreeBitOverflowError(this._value); | 184 _JavascriptIntegerOverflowError(this._value); |
| 185 String toString() => "53-bit Overflow: $_value"; | 185 String toString() => "Javascript Integer Overflow: $_value"; |
| 186 } | 186 } |
| OLD | NEW |