You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I found out that the below example breaks jalangi in a way that the use of variable z within the new Function constructor ends up getting instrumented multiple times , once as the variable itself and again as part of the string passed to new Function
Thanks @MadhuNimmo. The original code relies on the fact that calling toString() on a Function prints its code. After instrumentation, the output of toString() changes (to be the instrumented code), which breaks this test. We should probably update the documentation to indicate this is a case where Jalangi can alter behavior.
msridhar
changed the title
Expected bug
Bug when code relies on output of toString() on a Function
Mar 9, 2021
Hi,
I found out that the below example breaks jalangi in a way that the use of
variable z
within thenew Function
constructor ends up getting instrumented multiple times , once as the variable itself and again as part of the string passed tonew Function
If I try to print the functions that get invoked in the process, I get the below ones:
The text was updated successfully, but these errors were encountered: