Fix DumpSubtree so it doesn't assert. r=nobody, DEBUG-only JS_PROPTREE_DUMPFILE-only code.
authorJason Orendorff <jorendorff@mozilla.com>
Wed, 13 Jan 2010 15:33:55 -0600
changeset 37683 19e5fc57cd35f030f0c6d59016e9b19a611870a9
parent 37682 96dc5a825df7a687077d1bc6af608eca9e8b5f8e
child 37684 d26338c22cc6192b9ddceae3aab7bf12b5b248c1
push idunknown
push userunknown
push dateunknown
reviewersnobody, DEBUG-only
milestone1.9.3a1pre
Fix DumpSubtree so it doesn't assert. r=nobody, DEBUG-only JS_PROPTREE_DUMPFILE-only code.
js/src/jsscope.cpp
--- a/js/src/jsscope.cpp
+++ b/js/src/jsscope.cpp
@@ -1902,18 +1902,19 @@ DumpSubtree(JSContext *cx, JSScopeProper
         }
         if (!str)
             fputs("<error>", fp);
         else
             js_FileEscapedString(fp, str, '"');
     }
 
     fprintf(fp, " g/s %p/%p slot %u attrs %x flags %x shortid %d\n",
-            (void *) sprop->getterValue(), (void *) sprop->setterValue(), sprop->slot,
-            sprop->attrs, sprop->flags, sprop->shortid);
+            JS_FUNC_TO_DATA_PTR(void *, sprop->getter),
+            JS_FUNC_TO_DATA_PTR(void *, sprop->setter),
+            sprop->slot, sprop->attrs, sprop->flags, sprop->shortid);
     kids = sprop->kids;
     if (kids) {
         ++level;
         if (KIDS_IS_CHUNKY(kids)) {
             chunk = KIDS_TO_CHUNK(kids);
             do {
                 for (i = 0; i < MAX_KIDS_PER_CHUNK; i++) {
                     kid = chunk->kids[i];