diff options
Diffstat (limited to 'js/src/jsopcode.cpp')
-rw-r--r-- | js/src/jsopcode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsopcode.cpp b/js/src/jsopcode.cpp index 982ba8e7f0..30fcd0c87a 100644 --- a/js/src/jsopcode.cpp +++ b/js/src/jsopcode.cpp @@ -863,7 +863,7 @@ ToDisassemblySource(JSContext* cx, HandleValue v, JSAutoByteString* bytes) if (obj.is<JSFunction>()) { RootedFunction fun(cx, &obj.as<JSFunction>()); - JSString* str = JS_DecompileFunction(cx, fun, JS_DONT_PRETTY_PRINT); + JSString* str = JS_DecompileFunction(cx, fun); if (!str) return false; return bytes->encodeLatin1(cx, str); @@ -1972,7 +1972,7 @@ GetPCCountJSON(JSContext* cx, const ScriptAndCounts& sac, StringBuffer& buf) if (!AppendJSONProperty(buf, "text", NO_COMMA)) return false; - JSString* str = JS_DecompileScript(cx, script, nullptr, 0); + JSString* str = JS_DecompileScript(cx, script); if (!str || !(str = StringToSource(cx, str))) return false; |