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

Unified Diff: runtime/lib/object.cc

Issue 775223002: Remove several entries from invocation fuzzer blacklist. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object.cc
diff --git a/runtime/lib/object.cc b/runtime/lib/object.cc
index 701fccd44ac9144524f57c2292c185c7b417f842..278cb0935d0f4e82903db64ea945c9d9c596f7e1 100644
--- a/runtime/lib/object.cc
+++ b/runtime/lib/object.cc
@@ -46,7 +46,9 @@ DEFINE_NATIVE_ENTRY(Object_setHash, 2) {
DEFINE_NATIVE_ENTRY(Object_toString, 1) {
const Instance& instance = Instance::CheckedHandle(arguments->NativeArgAt(0));
- ASSERT(!instance.IsString()); // See issue 20583.
+ if (instance.IsString()) {
+ return instance.raw();
+ }
const char* c_str = instance.ToCString();
return String::New(c_str);
}
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698