Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index ab3b00a01edcde3512465bfc3485bb10132a2ba4..05f72db5ccacc7b5886379a6d83d3c87bc414e5b 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6280,9 +6280,9 @@ SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) |
bool JSGeneratorObject::is_suspended() { |
- DCHECK_LT(kGeneratorExecuting, kGeneratorClosed); |
- DCHECK_EQ(kGeneratorClosed, 0); |
- return continuation() > 0; |
+ DCHECK_LT(kGeneratorExecuting, 0); |
+ DCHECK_LT(kGeneratorClosed, 0); |
+ return continuation() >= 0; |
} |
bool JSGeneratorObject::is_closed() { |