| 
 | ||||||||||||
| SummaryGenerates the source code representing the body of a function, minus thefunctionkeyword, name, parameters, and braces. | ||||||||||||
| SyntaxJSString * JS_DecompileFunctionBody(JSContext *cx, JSFunction *fun, uintN indent); 
 | ||||||||||||
| DescriptionJS_DecompileFunctionBodygenerates the source code of a function's body, minus thefunctionkeyword, 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_DecompileFunctioninstead ofJS_DecompileFunctionBody.
 | ||||||||||||
| See Also
 |