OIP prints 'this'as an arg for methods

This commit is contained in:
Thierry Treyer 2023-06-15 06:42:57 -07:00 committed by Thierry Treyer
parent f28bdfca48
commit aea1e12004

View File

@ -232,6 +232,11 @@ void printFuncDesc(const std::shared_ptr<FuncDesc>& funcDesc) {
printf("\"funcArgs\":[");
bool isFirstItem = true;
if (funcDesc->isMethod) {
printFuncArg(funcDesc->getThis());
isFirstItem = false;
}
for (size_t i = 0; i < funcDesc->numArgs(); ++i) {
if (!isFirstItem) {
printf(",");