Skip to content
This repository has been archived by the owner on Dec 9, 2017. It is now read-only.

Need help #93

Open
MrP-git opened this issue Sep 29, 2017 · 0 comments
Open

Need help #93

MrP-git opened this issue Sep 29, 2017 · 0 comments

Comments

@MrP-git
Copy link

MrP-git commented Sep 29, 2017

Hi,

In my project, I am using jalangi to instrument my code. It works just fine. For ex:
My code is: var $toCount = document.querySelector('#toCount'); and If instrument it using the command: J$.instrumentCode(code, {wrapProgram: false, isEval: false}).code;
I will get instrumented code as below:

"var $toCount = J$.W(33, '$toCount', J$.M(25, J$.I(typeof document === 'undefined' ? document = J$.R(9, 'document', undefined, true, true) : document = J$.R(9, 'document', document, true, true)), 'querySelector', false)(J$.T(17, '#toCount', 21, false)), $toCount, false, true); // JALANGI DO NOT INSTRUMENT "

Now I want to catch the events (using API provided by Jalangi) such as this.write = function (iid, name, val, oldValue) { ....}, What should i do? Any suggestions would be helpful.

PS: I am using it in the browser environment.

@MrP-git MrP-git closed this as completed Sep 29, 2017
@MrP-git MrP-git reopened this Sep 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant