Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong instrumentation for lambda expression #149

Open
Mem2019 opened this issue May 20, 2019 · 1 comment
Open

Wrong instrumentation for lambda expression #149

Mem2019 opened this issue May 20, 2019 · 1 comment

Comments

@Mem2019
Copy link

Mem2019 commented May 20, 2019

expression const lambda = (a,b) => a+b; will be instrumented to

const lambda = J$.X1(121, J$.W(113, 'lambda', (J$.R(81, 'a', a, 1), J$.R(89, 'b', b, 1)) => J$.B(10, '+', J$.R(97, 'a', a, 1), J$.R(105, 'b', b, 1), 0), lambda, 3));

which causes the unexpected token error...

@Shailth13
Copy link

The issue is with the use of J$ as a lot of Javascript/JQuery code assumes J$ to be Jquery however Jalangi identifies it as Jalangi construct. Manual/through script replace J$ with a different way of the recognizer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants