mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
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:
parent
16c92706ee
commit
e43c76eb9d
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user