Fix 355112, r=igor.

This commit is contained in:
brendan%mozilla.org 2006-10-06 02:23:56 +00:00
parent b42b4069dc
commit 73eb0a7437

View File

@ -684,7 +684,7 @@ generator_mark(JSContext *cx, JSObject *obj, void *arg)
JSGenerator *gen;
gen = (JSGenerator *) JS_GetPrivate(cx, obj);
if (gen && gen->state != JSGEN_CLOSED) {
if (gen) {
/*
* We must mark argv[-2], as js_MarkStackFrame will not. Note that
* js_MarkStackFrame will mark thisp (argv[-1]) and actual arguments,