Chromium Code Reviews| Index: vm/dart_api_state.h |
| =================================================================== |
| --- vm/dart_api_state.h (revision 17877) |
| +++ vm/dart_api_state.h (working copy) |
| @@ -569,7 +569,9 @@ |
| } |
| void UnwindScopes(uword sp) { |
| - while (top_scope_ != NULL && top_scope_->stack_marker() < sp) { |
| + while (top_scope_ != NULL && |
| + top_scope_->stack_marker() != 0 && |
| + top_scope_->stack_marker() <= sp) { |
| ApiLocalScope* scope = top_scope_; |
| top_scope_ = top_scope_->previous(); |
| delete scope; |