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

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

Issue 21301003: Fixes javascript integer overflow check. (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/vm/exceptions.h » ('j') | runtime/vm/object.cc » ('J')
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/exceptions.h » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698