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/public | |
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/public')
-rw-r--r-- | js/public/Class.h | 2 | ||||
-rw-r--r-- | js/public/Proxy.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/public/Class.h b/js/public/Class.h index 1dd03a1821..634e5a281d 100644 --- a/js/public/Class.h +++ b/js/public/Class.h @@ -459,7 +459,7 @@ typedef bool * that object. A null return value means OOM. */ typedef JSString* -(* JSFunToStringOp)(JSContext* cx, JS::HandleObject obj, unsigned indent); +(* JSFunToStringOp)(JSContext* cx, JS::HandleObject obj, bool isToSource); /** * Resolve a lazy property named by id in obj by defining it directly in obj. diff --git a/js/public/Proxy.h b/js/public/Proxy.h index 8d24969b20..2453e2e140 100644 --- a/js/public/Proxy.h +++ b/js/public/Proxy.h @@ -326,7 +326,7 @@ class JS_FRIEND_API(BaseProxyHandler) ESClass* cls) const; virtual bool isArray(JSContext* cx, HandleObject proxy, JS::IsArrayAnswer* answer) const; virtual const char* className(JSContext* cx, HandleObject proxy) const; - virtual JSString* fun_toString(JSContext* cx, HandleObject proxy, unsigned indent) const; + virtual JSString* fun_toString(JSContext* cx, HandleObject proxy, bool isToSource) const; virtual bool regexp_toShared(JSContext* cx, HandleObject proxy, RegExpGuard* g) const; virtual bool boxedValue_unbox(JSContext* cx, HandleObject proxy, MutableHandleValue vp) const; virtual void trace(JSTracer* trc, JSObject* proxy) const; |