Fix build error when building with --enable-functiontimer. b=613589 r=mwu a=build bustage fix
authorJonas Sicking <jonas@sicking.cc>
Fri, 19 Nov 2010 13:49:53 -0800
changeset 57927 5c6fa4a5c3da3251baa57efe71eb4423b92aeb29
parent 57926 553678fc7c03cc9b37bde7dca5f03d69d19789f5
child 57928 bbc4273845eb1bd1c7133a5416ec0fb1450e9213
push idunknown
push userunknown
push dateunknown
reviewersmwu, build
bugs613589
milestone2.0b8pre
Fix build error when building with --enable-functiontimer. b=613589 r=mwu a=build bustage fix
dom/base/nsJSEnvironment.cpp
--- a/dom/base/nsJSEnvironment.cpp
+++ b/dom/base/nsJSEnvironment.cpp
@@ -2110,17 +2110,17 @@ nsJSContext::CallEventHandler(nsISupport
 
   if (!mScriptsEnabled) {
     return NS_OK;
   }
 
 #ifdef NS_FUNCTION_TIMER
   {
     JSObject *obj = static_cast<JSObject *>(aHandler);
-    JSString *id = JS_GetFunctionId(static_cast<JSFunction *>(JS_GetPrivate(mContext, obj));
+    JSString *id = JS_GetFunctionId(static_cast<JSFunction *>(JS_GetPrivate(mContext, obj)));
     JSAutoByteString bytes;
     const char *name = !id ? "anonymous" : bytes.encode(mContext, id) ? bytes.ptr() : "<error>";
     NS_TIME_FUNCTION_FMT(1.0, "%s (line %d) (function: %s)", MOZ_FUNCTION_NAME, __LINE__, name);
   }
 #endif
 
   JSAutoRequest ar(mContext);
   JSObject* target = nsnull;