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

Unified Diff: runtime/vm/exceptions.cc

Issue 2511573003: VM: Remove too strict assertion in rethrow. (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.cc
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc
index 4b73efd02026d37a0fefc1ab894238631bf9667d..8fde8b43f906e03a6fcf074e063d3d707f6a2e51 100644
--- a/runtime/vm/exceptions.cc
+++ b/runtime/vm/exceptions.cc
@@ -415,8 +415,6 @@ static void ThrowExceptionHelper(Thread* thread,
// reverse is not necessarily true (e.g. Dart_PropagateError can cause
// a rethrow being called without an existing stacktrace.)
ASSERT(is_rethrow);
- ASSERT(stacktrace_field.IsNull() ||
- (exception.GetField(stacktrace_field) != Object::null()));
stacktrace = existing_stacktrace.raw();
kustermann 2016/11/17 11:07:48 This branch doesn't need [stacktrace_field] anymor
Florian Schneider 2016/11/17 18:59:07 Done.
} else if (!stacktrace_field.IsNull() || handler_needs_stacktrace) {
// Collect the stacktrace if needed.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698