Bug 728686 - JS_NewPropertyIterator shouldn't disable IGC (r=igor)
authorBill McCloskey <wmccloskey@mozilla.com>
Tue, 21 Feb 2012 17:04:53 -0800
changeset 90142 8d1c74566a0b94eecd626df143d56cf6d5237c66
parent 90141 a625b9ed671fca596f98e026125508cf014975b7
child 90143 cf4978c2e32c340987a9258fe064e9a191d8a639
push idunknown
push userunknown
push dateunknown
reviewersigor
bugs728686
milestone13.0a1
Bug 728686 - JS_NewPropertyIterator shouldn't disable IGC (r=igor)
js/src/jsapi.cpp
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -4279,17 +4279,17 @@ prop_iter_trace(JSTracer *trc, JSObject 
         /* Non-native case: mark each id in the JSIdArray private. */
         JSIdArray *ida = (JSIdArray *) pdata;
         MarkIdRange(trc, ida->length, ida->vector, "prop iter");
     }
 }
 
 static Class prop_iter_class = {
     "PropertyIterator",
-    JSCLASS_HAS_PRIVATE | JSCLASS_HAS_RESERVED_SLOTS(1),
+    JSCLASS_HAS_PRIVATE | JSCLASS_IMPLEMENTS_BARRIERS | JSCLASS_HAS_RESERVED_SLOTS(1),
     JS_PropertyStub,         /* addProperty */
     JS_PropertyStub,         /* delProperty */
     JS_PropertyStub,         /* getProperty */
     JS_StrictPropertyStub,   /* setProperty */
     JS_EnumerateStub,
     JS_ResolveStub,
     JS_ConvertStub,
     prop_iter_finalize,