Bug 530018 - js_DecompileToString Undefined symbol. r=jim

This commit is contained in:
Leon Sha 2009-11-27 09:22:24 +08:00
parent fe9c904589
commit 7d3bee1630
2 changed files with 4 additions and 2 deletions

View File

@ -4921,7 +4921,7 @@ js_DecompileScript(JSPrinter *jp, JSScript *script)
JSString * JSString *
js_DecompileToString(JSContext *cx, const char *name, JSFunction *fun, js_DecompileToString(JSContext *cx, const char *name, JSFunction *fun,
uintN indent, JSBool pretty, JSBool grouped, JSBool strict, uintN indent, JSBool pretty, JSBool grouped, JSBool strict,
JSBool (*decompiler)(JSPrinter *jp)) JSDecompilerPtr decompiler)
{ {
JSPrinter *jp; JSPrinter *jp;
JSString *str; JSString *str;

View File

@ -424,10 +424,12 @@ js_DecompileFunctionBody(JSPrinter *jp);
extern JSBool extern JSBool
js_DecompileFunction(JSPrinter *jp); js_DecompileFunction(JSPrinter *jp);
typedef JSBool (* JSDecompilerPtr)(JSPrinter *);
extern JSString * extern JSString *
js_DecompileToString(JSContext *cx, const char *name, JSFunction *fun, js_DecompileToString(JSContext *cx, const char *name, JSFunction *fun,
uintN indent, JSBool pretty, JSBool grouped, JSBool strict, uintN indent, JSBool pretty, JSBool grouped, JSBool strict,
JSBool (*decompiler)(JSPrinter *jp)); JSDecompilerPtr decompiler);
/* /*
* Find the source expression that resulted in v, and return a newly allocated * Find the source expression that resulted in v, and return a newly allocated