[ES7] yield star should not return if the inner iterator.throw returns { done: true }
[WebKit-https.git] / Source / JavaScriptCore / runtime / JSGeneratorFunction.h
index ff1072a..36f61c5 100644 (file)
@@ -50,6 +50,11 @@ public:
         ThrowMode = 2
     };
 
+    enum class GeneratorState : int32_t {
+        Completed = -1,
+        Executing = -2,
+    };
+
     const static unsigned StructureFlags = Base::StructureFlags;
 
     DECLARE_EXPORT_INFO;