Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: runtime/lib/errors_patch.dart

Issue 17361004: Move FiftythreeBitOverflowError to VM-only patch file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adding rationale to error test. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 msg_buf.write( 162 msg_buf.write(
163 "NoSuchMethodError: incorrect number of arguments passed to " 163 "NoSuchMethodError: incorrect number of arguments passed to "
164 "method named '$_memberName'\n" 164 "method named '$_memberName'\n"
165 "Receiver: $receiver_str\n" 165 "Receiver: $receiver_str\n"
166 "Tried calling: $_memberName($actualParameters)\n" 166 "Tried calling: $_memberName($actualParameters)\n"
167 "Found: $_memberName($formalParameters)"); 167 "Found: $_memberName($formalParameters)");
168 } 168 }
169 return msg_buf.toString(); 169 return msg_buf.toString();
170 } 170 }
171 } 171 }
172
173 class _FiftyThreeBitOverflowError implements Error {
174 final Object value;
175
176 const _FiftyThreeBitOverflowError(this.value);
177 String toString() => "53-bit Overflow: $value";
178 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698