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

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

Issue 23703004: Fix error message for NoSuchMethodError to not contain "Symbol". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 | no next file » | 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 /* patch */ StackTrace get stackTrace => _stackTrace; 10 /* patch */ StackTrace get stackTrace => _stackTrace;
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 if (i > 0) { 291 if (i > 0) {
292 formal_buf.write(", "); 292 formal_buf.write(", ");
293 } 293 }
294 formal_buf.write(_existingArgumentNames[i]); 294 formal_buf.write(_existingArgumentNames[i]);
295 } 295 }
296 String formalParameters = formal_buf.toString(); 296 String formalParameters = formal_buf.toString();
297 msg_buf.write( 297 msg_buf.write(
298 "NoSuchMethodError: incorrect number of arguments passed to " 298 "NoSuchMethodError: incorrect number of arguments passed to "
299 "method named '$memberName'\n" 299 "method named '$memberName'\n"
300 "Receiver: $receiver_str\n" 300 "Receiver: $receiver_str\n"
301 "Tried calling: $_memberName($actualParameters)\n" 301 "Tried calling: $memberName($actualParameters)\n"
302 "Found: $_memberName($formalParameters)"); 302 "Found: $memberName($formalParameters)");
303 } 303 }
304 return msg_buf.toString(); 304 return msg_buf.toString();
305 } 305 }
306 } 306 }
307 307
308 class _JavascriptIntegerOverflowError extends Error { 308 class _JavascriptIntegerOverflowError extends Error {
309 final Object _value; 309 final Object _value;
310 310
311 _JavascriptIntegerOverflowError(this._value); 311 _JavascriptIntegerOverflowError(this._value);
312 String toString() => "Javascript Integer Overflow: $_value"; 312 String toString() => "Javascript Integer Overflow: $_value";
313 } 313 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698