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

Unified Diff: runtime/vm/object.cc

Issue 17550009: In FiftyThreeBitOverflow, stores overflowing value as a string. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 24288)
+++ runtime/vm/object.cc (working copy)
@@ -10635,7 +10635,8 @@
// Throw FiftyThreeBitOverflow exception.
static void ThrowFiftyThreeBitOverflow(const Integer& i) {
const Array& exc_args = Array::Handle(Array::New(1));
- exc_args.SetAt(0, i);
+ const String& i_str = String::Handle(String::New(i.ToCString()));
+ exc_args.SetAt(0, i_str);
Exceptions::ThrowByType(Exceptions::kFiftyThreeBitOverflowError, exc_args);
}
« no previous file with comments | « no previous file | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698