From c8ee8265da3149181a714df316f094d760bfbe7e Mon Sep 17 00:00:00 2001 From: Peter Van der Beken Date: Sun, 10 Oct 2010 15:46:42 -0700 Subject: [PATCH] bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap --- js/src/jsobj.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp index 7e740bad384..2cfd02b6c6f 100644 --- a/js/src/jsobj.cpp +++ b/js/src/jsobj.cpp @@ -6139,6 +6139,8 @@ js_PrintObjectSlotName(JSTracer *trc, char *buf, size_t bufsize) shape = obj->lastProperty(); while (shape->previous() && shape->slot != slot) shape = shape->previous(); + if (shape->slot != slot) + shape = NULL; } else { shape = NULL; }