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

Unified Diff: runtime/vm/unit_test.h

Issue 9314053: Revert Dart_PropagateError until I can track down the problems in (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/vm/stack_frame.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/unit_test.h
===================================================================
--- runtime/vm/unit_test.h (revision 3821)
+++ runtime/vm/unit_test.h (working copy)
@@ -78,12 +78,9 @@
static void CodeGenTestRun##name(const Function& function) { \
GrowableArray<const Object*> arguments; \
const Array& kNoArgumentNames = Array::Handle(); \
- Object& result = Object::Handle(); \
+ Instance& result = Instance::Handle(); \
result = DartEntry::InvokeStatic(function, arguments, kNoArgumentNames); \
- EXPECT(!result.IsError()); \
- Instance& actual = Instance::Handle(); \
- actual ^= result.raw(); \
- EXPECT(actual.Equals(Instance::Handle(expected))); \
+ EXPECT(result.Equals(Instance::Handle(expected))); \
}
@@ -118,12 +115,9 @@
static void CodeGenTestRun##name1(const Function& function) { \
GrowableArray<const Object*> arguments; \
const Array& kNoArgumentNames = Array::Handle(); \
- Object& result = Object::Handle(); \
+ Instance& result = Instance::Handle(); \
result = DartEntry::InvokeStatic(function, arguments, kNoArgumentNames); \
- EXPECT(!result.IsError()); \
- Instance& actual = Instance::Handle(); \
- actual ^= result.raw(); \
- EXPECT(actual.Equals(Instance::Handle(expected))); \
+ EXPECT(result.Equals(Instance::Handle(expected))); \
}
« no previous file with comments | « runtime/vm/stack_frame.cc ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698