Releases: bplok20010/eval5
Releases · bplok20010/eval5
v1.3.0
1. 新增Interpreter.ecmaVersion,指定ECMA版本,默认为5,不建议更改 2. Interpreter.prototype.construcotr的options支持ecmaVersion默认为Interpreter.ecmaVersion 3. vm.compileFunction及vm.runInContext的options支持ecmaVersion默认为Interpreter.ecmaVersion 4. 超时策略调整,同node.js的vm
v1.2.0
1. Interpreter.prototype.evaluate取消第二个context参数 2. evaluate新增别名:appendCode 3. 修复function在多吃调用evaluate时toString返回错乱问题
v1.1.5
移动端适配
v1.1.4
Interpreter内置对象删除策略调整
v1.1.3
1. 修正delete global/window的内置对象时影响Interpreter内置对象 2. 修复global/window内置对象覆盖Interpreter内置后,"delete 内置对象"不生效问题
v1.1.2
新增ES6常用对象:Promise Set Map Symbol ...等
v1.1.1
1. 完成 throw 语句返回 undefined 解析 2. 文档更新
v1.1.0
- Interpreter.global默认不设置
- 完成eval Function解析,及新增Interpreter.eval Interpreter.Function
- 添加ECMA5内置对象:Date Array Number JSON undefined Math ...等
v1.0.9
v1.0.8 1. 函数调用时this默认为undefined, 可通过Interpreter.rootContext设置。不建议设置以防Illegal invocation错误。eg: alert.call({}, 1) 2. 函数/变量声明顺序调整 3. 新增Interpreter.version属性
v1.0.6
修复try-catch作用域错乱问题