- ES5的大部分语法(除for in, with, label语句)
- 额外实现的功能
- generotor函数
- async函数
- **
git@github.com:Tsuizen/JS-Interpreter.git
yarn install
const { customEval, Scope } = require('./src/eval');
const scope = new Scope();
const func = customEval(
`
function test(name){
return "hello " + name;
}
module.exports = test;
`,
scope
);
console.log(func('Tom'));