[Bug 595544] Fix some JSFunctionSpec definitions in nsJSEnvironment.cpp. r=dbaron a=bustage
authorRobert Sayre <sayrer@gmail.com>
Sat, 11 Sep 2010 17:24:00 -0400
changeset 53644 ac779114cfa60efff7753e389523b3de7a8a7525
parent 53643 f1bd314e64ac8ad717746fd72667300460b9cf38
child 53645 ec2ffd935bd973fc6e650515df6fd8db907d5c12
push idunknown
push userunknown
push dateunknown
reviewersdbaron, bustage
bugs595544
milestone2.0b6pre
[Bug 595544] Fix some JSFunctionSpec definitions in nsJSEnvironment.cpp. r=dbaron a=bustage
dom/base/nsJSEnvironment.cpp
--- a/dom/base/nsJSEnvironment.cpp
+++ b/dom/base/nsJSEnvironment.cpp
@@ -3270,57 +3270,57 @@ JProfStopProfilingJS(JSContext *cx, JSOb
 void
 NS_JProfStopProfiling()
 {
     raise(SIGUSR1);
     printf("Stopped jprof profiling.\n");
 }
 
 static JSFunctionSpec JProfFunctions[] = {
-    {"JProfStartProfiling",        JProfStartProfilingJS,      0, 0, 0},
-    {"JProfStopProfiling",         JProfStopProfilingJS,       0, 0, 0},
-    {nsnull,                       nsnull,                     0, 0, 0}
+    {"JProfStartProfiling",        JProfStartProfilingJS,      0, 0},
+    {"JProfStopProfiling",         JProfStopProfilingJS,       0, 0},
+    {nsnull,                       nsnull,                     0, 0}
 };
 
 #endif /* defined(MOZ_JPROF) */
 
 #ifdef MOZ_SHARK
 static JSFunctionSpec SharkFunctions[] = {
     {"startShark",                 js_StartShark,              0, 0},
     {"stopShark",                  js_StopShark,               0, 0},
     {"connectShark",               js_ConnectShark,            0, 0},
     {"disconnectShark",            js_DisconnectShark,         0, 0},
     {nsnull,                       nsnull,                     0, 0}
 };
 #endif
 
 #ifdef MOZ_CALLGRIND
 static JSFunctionSpec CallgrindFunctions[] = {
-    {"startCallgrind",             js_StartCallgrind,          0, 0, 0},
-    {"stopCallgrind",              js_StopCallgrind,           0, 0, 0},
-    {"dumpCallgrind",              js_DumpCallgrind,           1, 0, 0},
-    {nsnull,                       nsnull,                     0, 0, 0}
+    {"startCallgrind",             js_StartCallgrind,          0, 0},
+    {"stopCallgrind",              js_StopCallgrind,           0, 0},
+    {"dumpCallgrind",              js_DumpCallgrind,           1, 0},
+    {nsnull,                       nsnull,                     0, 0}
 };
 #endif
 
 #ifdef MOZ_VTUNE
 static JSFunctionSpec VtuneFunctions[] = {
-    {"startVtune",                 js_StartVtune,              1, 0, 0},
-    {"stopVtune",                  js_StopVtune,               0, 0, 0},
-    {"pauseVtune",                 js_PauseVtune,              0, 0, 0},
-    {"resumeVtune",                js_ResumeVtune,             0, 0, 0},
-    {nsnull,                       nsnull,                     0, 0, 0}
+    {"startVtune",                 js_StartVtune,              1, 0},
+    {"stopVtune",                  js_StopVtune,               0, 0},
+    {"pauseVtune",                 js_PauseVtune,              0, 0},
+    {"resumeVtune",                js_ResumeVtune,             0, 0},
+    {nsnull,                       nsnull,                     0, 0}
 };
 #endif
 
 #ifdef MOZ_TRACEVIS
 static JSFunctionSpec EthogramFunctions[] = {
-    {"initEthogram",               js_InitEthogram,            0, 0, 0},
-    {"shutdownEthogram",           js_ShutdownEthogram,        0, 0, 0},
-    {nsnull,                       nsnull,                     0, 0, 0}
+    {"initEthogram",               js_InitEthogram,            0, 0},
+    {"shutdownEthogram",           js_ShutdownEthogram,        0, 0},
+    {nsnull,                       nsnull,                     0, 0}
 };
 #endif
 
 nsresult
 nsJSContext::InitClasses(void *aGlobalObj)
 {
   nsresult rv = NS_OK;