Bug 511836 - Assertion failure: JSVAL_IS_INT(v), at ../jsapi.h. Iterator.prototype not initialized properly. r=mrbkap.

This commit is contained in:
Jason Orendorff
2009-08-21 11:58:34 -05:00
parent cb353e8262
commit bf5962254d

View File

@@ -1014,6 +1014,7 @@ js_InitIteratorClasses(JSContext *cx, JSObject *obj)
if (!proto)
return NULL;
STOBJ_SET_SLOT(proto, JSSLOT_ITER_STATE, JSVAL_NULL);
STOBJ_SET_SLOT(proto, JSSLOT_ITER_FLAGS, JSVAL_ZERO);
#if JS_HAS_GENERATORS
/* Initialize the generator internals if configured. */