Index: src/debug/mirrors.js |
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js |
index 881f303f29dd603466953bb1044f7f2356268360..d0b76fda2029e7d4aeaa93b4e48af9f05b5d4b7c 100644 |
--- a/src/debug/mirrors.js |
+++ b/src/debug/mirrors.js |
@@ -1408,8 +1408,8 @@ inherits(GeneratorMirror, ObjectMirror); |
function GeneratorGetStatus_(value) { |
var continuation = %GeneratorGetContinuation(value); |
- if (continuation < 0) return "running"; |
- if (continuation == 0) return "closed"; |
+ if (continuation < -1) return "running"; |
+ if (continuation == -1) return "closed"; |
return "suspended"; |
} |