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

Unified Diff: runtime/vm/allocation_test.cc

Issue 9186058: Make the "sticky error" an Error instead of a String. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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 | « runtime/lib/isolate.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation_test.cc
===================================================================
--- runtime/vm/allocation_test.cc (revision 3366)
+++ runtime/vm/allocation_test.cc (working copy)
@@ -88,7 +88,10 @@
TestValueObject stacked(ptr);
EXPECT_EQ(2, *ptr);
*ptr = 3;
- jump->Jump(1, "StackAllocatedLongJump Test");
+ const Error& error =
+ Error::Handle(LanguageError::New(
+ String::Handle(String::New("StackAllocatedLongJump"))));
+ jump->Jump(1, error);
UNREACHABLE();
}
@@ -132,7 +135,10 @@
TestStackedStackResource stacked(ptr);
EXPECT_EQ(4, *ptr);
*ptr = 5;
- jump->Jump(1, "StackResourceLongJump Test");
+ const Error& error =
+ Error::Handle(LanguageError::New(
+ String::Handle(String::New("StackedStackResourceLongJump"))));
+ jump->Jump(1, error);
UNREACHABLE();
}
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/class_finalizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698