JavaScript bytecode compiler?
问题 For a project I'm tangentially working on, I need a way to compile JavaScript into some intermediate language or bytecode so that I can single-step through it. I know that many of the JavaScript engines in modern browsers do something like this, but they don't make the resulting bytecode accessible. Is there a good off-the-shelf tool for this sort of JavaScript compilation? 回答1: Not exactly sure of your needs, however maybe Rhino could work for you. The JavaScript compiler translates