diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 9f6448e20c0c..87b2d4eb2921 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -1102,7 +1102,7 @@ jsval& TraceRecorder::gvarval(unsigned n) const { JS_ASSERT(n < STOBJ_NSLOTS(global->varobj)); - return STOBJ_GET_SLOT(cx->fp->varobj, n); + return STOBJ_GET_SLOT(global->varobj, n); } jsval&