1

I have looked at this question already but a graphical representation is not exactly what I want.

Is there a SOOT like tool for Javascript that gives you an intermediate representation you can play with? Or else, is there a Javascript -> Java-bytecode -> Javascript converter? (so that I can use SOOT with Java-bytecode to do my transformations and get it back as Javascript)

1 Answer 1

2

I don't think such a tool exists. WALA can analyze JS to some extent but it cannot generate JS code again. Many people I know who analyze JS do this by modifying a JIT compiler.

Sign up to request clarification or add additional context in comments.

1 Comment

Closure Compiler by Google comes close. They are using Rhino's intermediate representation and treating code rewrite as string composition.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.