Consider logging return value of function call
Opened this issue · 1 comments
We currently log a call before we call the function.
OpenWPM/Extension/webext-instrumentation/src/lib/js-instruments.ts
Lines 442 to 451 in 771b6db
This results in us being unable to capture the return value so we leave it empty.
OpenWPM/Extension/webext-instrumentation/src/lib/js-instruments.ts
Lines 297 to 309 in 771b6db
Is there a reason we chose to do that?
Hi,
I am trying to capture the return value of some functions myself.
For what I saw, value is used for return of get() operations, but not for call() ones, but is used as "arg" for set() ones, which makes its usage a bit confusing.
From SQLite Documentation I see that MAX_LENGTH for String is 1 billion bytes. Maybe is related to a size problem? Although it can be stored and I cannot anticipate a return value of over 1 billion bytes, maybe storing this information would inflate the DB too much...?