Suppose there is a piece of JavaScript code that is supported by different browsers, for example IE and Firefox. Would the JavaScript parsers of the different browsers generate the same output (i.e., the same AST)?
Suppose there is a piece of JavaScript code that is supported by different browsers,
Share
No, Not always, different browser have different javascript Parser, IE have JScript Engine and Mozilla have its own Javascript Engine.
For example, if you run following code
Firefox return 3, while IE return 0
See