From aea1e1200489e3baebced55b3ade226a367614bb Mon Sep 17 00:00:00 2001 From: Thierry Treyer Date: Thu, 15 Jun 2023 06:42:57 -0700 Subject: [PATCH] OIP prints 'this'as an arg for methods --- tools/OIP.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/OIP.cpp b/tools/OIP.cpp index 5b4b32d..71ce16d 100644 --- a/tools/OIP.cpp +++ b/tools/OIP.cpp @@ -232,6 +232,11 @@ void printFuncDesc(const std::shared_ptr& 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(",");