Issue #1952 - m-c 1383775: Clean up function toString/toSource code, remove remnants of source decompiler

This commit is contained in:
Martok 2022-07-01 12:53:23 +02:00 committed by roytam1
commit 85af7f6e80
24 changed files with 55 additions and 64 deletions

View file

@ -259,11 +259,11 @@ Wrapper::className(JSContext* cx, HandleObject proxy) const
}
JSString*
Wrapper::fun_toString(JSContext* cx, HandleObject proxy, unsigned indent) const
Wrapper::fun_toString(JSContext* cx, HandleObject proxy, bool isToSource) const
{
assertEnteredPolicy(cx, proxy, JSID_VOID, GET);
RootedObject target(cx, proxy->as<ProxyObject>().target());
return fun_toStringHelper(cx, target, indent);
return fun_toStringHelper(cx, target, isToSource);
}
bool