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
I think what happens here is due to graal-js optimizing away the unary operation for simple conditions. If you change the condition to e.g. if(!!input) the unary callback will be invoked.
These optimizations (or simplifications) happen when the AST is built and generally cannot be disabled, maybe @eleinadani knows whether the current behavior exposed to NodeProf is correct or not (missing materialization of nodes).
Hello,
I have the following sample Jalangi2 analysis:
And test program:
When I run the analysis with Jalangi2 I get the expected output:
But when I run it with NodeProf.js I get this output:
It misses a callback for
unary
inside the conditional, and theresult
argument of conditional isundefined
instead oftrue
.The text was updated successfully, but these errors were encountered: