| ||||||||||||
SummaryGenerates the source code representing the body of a function, minus thefunction keyword, name, parameters, and braces.
| ||||||||||||
SyntaxJSString * JS_DecompileFunctionBody(JSContext *cx, JSFunction *fun, uintN indent);
| ||||||||||||
DescriptionJS_DecompileFunctionBody generates the source code of a function's body, minus the function keyword, name, parameters, and braces, from a function's compiled form, fun .
If successful, The source code generated by this function is accurate but unadorned and is not suitable for recompilation without providing the function's declaration. If you decompile a function that makes a native C call, the body of the function only contains the text "[native code]".
| ||||||||||||
NotesTo decompile a complete function, including its body and declaration, callJS_DecompileFunction instead of JS_DecompileFunctionBody .
| ||||||||||||
See Also
|