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

J$ name conflict #170

Open
stroucki opened this issue Oct 4, 2021 · 2 comments
Open

J$ name conflict #170

stroucki opened this issue Oct 4, 2021 · 2 comments

Comments

@stroucki
Copy link

stroucki commented Oct 4, 2021

I am trying to instrument the javascript of a major web site, and their code seems to use an identifier named "J$", and that prevents Jalangi from working.

Is there a good way to configure another name for Jalangi to use? I would use something like "JalangiInstrumentation", should be more unique than "J$".

@msridhar
Copy link
Contributor

msridhar commented Oct 4, 2021

Wow, this is pretty surprising (at least I haven't seen it before)! Unfortunately, we do not have a way to configure the variable name used by Jalangi. Such support could be added but it would need to be done with care as a lot of code assumes J$ will hold the Jalangi object.

@stroucki
Copy link
Author

Thank you for the quick answer. I think a name like "J$" would well be in the range of some minifiers, or manually used for jquery.

We have a script right now to search and replace occurrences of J$ in the code.

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