NeilFraser / JS-Interpreter

A sandboxed JavaScript interpreter in JavaScript.
Apache License 2.0
1.98k stars 355 forks source link

Update acorn.js #255

Closed RohitPaul0007 closed 1 year ago

NeilFraser commented 1 year ago

The JS-Interpreter can run itself: https://neil.fraser.name/software/JS-Interpreter/demos/self-interpreter.html This is an important ability. Adding let/const to the source code means the JS-Interpreter would be using ES6 constructs, and thus could no longer run itself. We need to keep the source code compatible with ES5.