Skip to content

Commit

Permalink
Revert "Use JSON.stringify for dump args and return (#334)" (#414)
Browse files Browse the repository at this point in the history
This reverts commit ac40784
  • Loading branch information
ido77778 authored Feb 17, 2021
1 parent 4b46537 commit 675a88f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/src/android/hooking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export namespace hooking {
if (dargs && calleeArgTypes.length > 0) {
const argValues: string[] = [];
for (const h of arguments) {
argValues.push(JSON.stringify(h || "(none)"));
argValues.push((h || "(none)").toString());
}

send(
Expand All @@ -190,7 +190,7 @@ export namespace hooking {

// dump the return value
if (dret) {
const retValStr: string = JSON.stringify(retVal || "(none)");
const retValStr: string = (retVal || "(none)").toString();
send(c.blackBright(`[${job.identifier}] `) + `Return Value: ${c.red(retValStr)}`);
}

Expand Down

0 comments on commit 675a88f

Please sign in to comment.