army8735/jsdc

rest param bug

Closed this issue · 1 comments

a(...b) -> a.apply(this, [].concat(b))

b可能不是个array,使用iterator

new a().b(...c)

需要解决

new a().b(...c)的this指向需临时变量存放new a()