Skip to content

Releases: bplok20010/eval5

v1.3.0

15 Feb 15:48
Compare
Choose a tag to compare
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

07 Feb 15:31
Compare
Choose a tag to compare
1. Interpreter.prototype.evaluate取消第二个context参数

2. evaluate新增别名:appendCode
3. 修复function在多吃调用evaluate时toString返回错乱问题

v1.1.5

07 Feb 06:26
Compare
Choose a tag to compare
移动端适配

v1.1.4

24 Jan 15:54
Compare
Choose a tag to compare
Interpreter内置对象删除策略调整

v1.1.3

24 Jan 15:33
Compare
Choose a tag to compare
1. 修正delete global/window的内置对象时影响Interpreter内置对象

2. 修复global/window内置对象覆盖Interpreter内置后,"delete 内置对象"不生效问题

v1.1.2

24 Jan 15:23
Compare
Choose a tag to compare
新增ES6常用对象:Promise Set Map Symbol ...等

v1.1.1

24 Jan 00:35
Compare
Choose a tag to compare
1. 完成 throw 语句返回 undefined 解析
2. 文档更新

v1.1.0

23 Jan 14:35
Compare
Choose a tag to compare
  1. Interpreter.global默认不设置
  2. 完成eval Function解析,及新增Interpreter.eval Interpreter.Function
  3. 添加ECMA5内置对象:Date Array Number JSON undefined Math ...等

v1.0.9

23 Jan 04:53
Compare
Choose a tag to compare
v1.0.8

1. 函数调用时this默认为undefined, 可通过Interpreter.rootContext设置。不建议设置以防Illegal invocation错误。eg: alert.call({}, 1)
2. 函数/变量声明顺序调整
3. 新增Interpreter.version属性

v1.0.6

14 Jan 21:28
Compare
Choose a tag to compare

修复try-catch作用域错乱问题