| 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 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 msg_buf.add( | 143 msg_buf.add( |
| 144 "NoSuchMethodError: incorrect number of arguments passed to " | 144 "NoSuchMethodError: incorrect number of arguments passed to " |
| 145 "method named '$_memberName'\n" | 145 "method named '$_memberName'\n" |
| 146 "Receiver: ${Error.safeToString(_receiver)}\n" | 146 "Receiver: ${Error.safeToString(_receiver)}\n" |
| 147 "Tried calling: $_memberName($actualParameters)\n" | 147 "Tried calling: $_memberName($actualParameters)\n" |
| 148 "Found: $_memberName($formalParameters)"); | 148 "Found: $_memberName($formalParameters)"); |
| 149 } | 149 } |
| 150 return msg_buf.toString(); | 150 return msg_buf.toString(); |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 |
| 154 patch class Stacktrace { |
| 155 /* patch */ String get fullStacktrace native "Stacktrace_getFullStacktrace"; |
| 156 |
| 157 /* patch */ String get stacktrace native "Stacktrace_getStacktrace"; |
| 158 |
| 159 /* patch */ void _setupFullStacktrace() |
| 160 native "Stacktrace_setupFullStacktrace"; |
| 161 } |
| OLD | NEW |