From 4bf20fc91ed7517339f0cedec98ca2db6aff9f8f Mon Sep 17 00:00:00 2001 From: Martok Date: Fri, 1 Jul 2022 12:53:23 +0200 Subject: Issue #1952 - m-c 1383775: Clean up function toString/toSource code, remove remnants of source decompiler --- js/public/Class.h | 2 +- js/public/Proxy.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'js/public') 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; -- cgit v1.2.3