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

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

Issue 19106008: Fix for issue 11680 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/lib/integers.cc » ('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 // 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
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/integers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698