Bug 928333 followup - dumpHead() should only be defined in debug mode. r=me
authorBenjamin Peterson <benjamin@python.org>
Sat, 19 Oct 2013 19:15:41 -0400
changeset 166221 868c1b4be35e5d46b159029577feaf222cbf8c97
parent 166220 1f4c41dc9813290cb4be251e1d56c3fcd82203b5
child 166222 2d46b79963e8a5795b777b8686fea1b9dfcad533
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs928333
milestone27.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 928333 followup - dumpHead() should only be defined in debug mode. r=me
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -4397,19 +4397,21 @@ static const JSFunctionSpecWithHelp shel
 };
 
 static const JSFunctionSpecWithHelp fuzzing_unsafe_functions[] = {
     JS_FN_HELP("getSelfHostedValue", GetSelfHostedValue, 1, 0,
 "getSelfHostedValue()",
 "  Get a self-hosted value by its name. Note that these values don't get \n"
 "  cached, so repeatedly getting the same value creates multiple distinct clones."),
 
+#ifdef DEBUG
     JS_FN_HELP("dumpHeap", DumpHeap, 0, 0,
 "dumpHeap([fileName[, start[, toFind[, maxDepth[, toIgnore]]]]])",
 "  Interface to JS_DumpHeap with output sent to file."),
+#endif
 
     JS_FN_HELP("parent", Parent, 1, 0,
 "parent(obj)",
 "  Returns the parent of obj."),
 
     JS_FN_HELP("line2pc", LineToPC, 0, 0,
 "line2pc([fun,] line)",
 "  Map line number to PC."),