Bug 341496: Iterator class now tells the engine about extra slots it uses as its instances are exposed to scripts. r=mrbkap

This commit is contained in:
igor.bukanov%gmail.com 2006-06-15 10:35:11 +00:00
parent 16c92706ee
commit e43c76eb9d

View File

@ -105,7 +105,9 @@ iterator_close(JSContext *cx, JSObject *obj)
JSExtendedClass js_IteratorClass = {
{ "Iterator",
JSCLASS_IS_EXTENDED | JSCLASS_HAS_CACHED_PROTO(JSProto_Iterator),
JSCLASS_IS_EXTENDED |
JSCLASS_HAS_RESERVED_SLOTS(2) | /* slots for state and flags */
JSCLASS_HAS_CACHED_PROTO(JSProto_Iterator),
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub,
JSCLASS_NO_OPTIONAL_MEMBERS },