From ca84af0dfcebe0a23470fa4c33728f112605846f Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Fri, 21 Jul 2006 02:00:36 +0000 Subject: [PATCH] Mark newborn generators' frames (343455, r=mrbkap). --- js/src/jsiter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/jsiter.c b/js/src/jsiter.c index eb4f9217bd9..ac86b019f51 100644 --- a/js/src/jsiter.c +++ b/js/src/jsiter.c @@ -660,7 +660,7 @@ generator_mark(JSContext *cx, JSObject *obj, void *arg) JSGenerator *gen; gen = (JSGenerator *) JS_GetPrivate(cx, obj); - if (gen && gen->state == JSGEN_RUNNING) + if (gen && gen->state != JSGEN_CLOSED) js_MarkStackFrame(cx, &gen->frame); return 0; }