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

Unified Diff: src/debug/mirrors.js

Issue 1884183002: First version of the new generators implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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
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";
}
« no previous file with comments | « src/compiler.cc ('k') | src/flag-definitions.h » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698