diff options
author | Martok <martok@martoks-place.de> | 2022-07-01 12:53:23 +0200 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2022-07-01 20:25:01 +0200 |
commit | 4bf20fc91ed7517339f0cedec98ca2db6aff9f8f (patch) | |
tree | 0dc8779e78c9faf532535e112b44758fef3d8b4a /js/src/jsapi.h | |
parent | 2a10574d760200c3095b70595edec11e6002ad6a (diff) | |
download | uxp-4bf20fc91ed7517339f0cedec98ca2db6aff9f8f.tar.gz |
Issue #1952 - m-c 1383775: Clean up function toString/toSource code, remove remnants of source decompiler
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r-- | js/src/jsapi.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h index 8e70cc152b..0b865ff523 100644 --- a/js/src/jsapi.h +++ b/js/src/jsapi.h @@ -4200,16 +4200,10 @@ CompileFunction(JSContext* cx, AutoObjectVector& envChain, } /* namespace JS */ extern JS_PUBLIC_API(JSString*) -JS_DecompileScript(JSContext* cx, JS::Handle<JSScript*> script, const char* name, unsigned indent); - -/* - * API extension: OR this into indent to avoid pretty-printing the decompiled - * source resulting from JS_DecompileFunction. - */ -#define JS_DONT_PRETTY_PRINT ((unsigned)0x8000) +JS_DecompileScript(JSContext* cx, JS::Handle<JSScript*> script); extern JS_PUBLIC_API(JSString*) -JS_DecompileFunction(JSContext* cx, JS::Handle<JSFunction*> fun, unsigned indent); +JS_DecompileFunction(JSContext* cx, JS::Handle<JSFunction*> fun); /* |