Bug 1006894: Make disableSPSProfiling() return undefined; r=djvj
authorBenjamin Bouvier <benj@benj.me>
Wed, 04 Jun 2014 19:54:35 +0200
changeset 206963 7c6822279dfc80d7f97469a320e33174c4099dc4
parent 206962 0785e0d17abd34dece239168b509c1cae1aaf4eb
child 206964 72396a53734450ae1a503efd7ab64dcf0ae5694c
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdjvj
bugs1006894
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1006894: Make disableSPSProfiling() return undefined; r=djvj
js/src/builtin/TestingFunctions.cpp
--- a/js/src/builtin/TestingFunctions.cpp
+++ b/js/src/builtin/TestingFunctions.cpp
@@ -1072,18 +1072,20 @@ EnableSPSProfilingWithSlowAssertions(JSC
 
     args.rval().setUndefined();
     return true;
 }
 
 static bool
 DisableSPSProfiling(JSContext *cx, unsigned argc, jsval *vp)
 {
+    CallArgs args = CallArgsFromVp(argc, vp);
     if (cx->runtime()->spsProfiler.installed())
         cx->runtime()->spsProfiler.enable(false);
+    args.rval().setUndefined();
     return true;
 }
 
 static bool
 EnableOsiPointRegisterChecks(JSContext *, unsigned argc, jsval *vp)
 {
     CallArgs args = CallArgsFromVp(argc, vp);
 #if defined(JS_ION) && defined(CHECK_OSIPOINT_REGISTERS)