Array.apply(null, {length: 12}) 在Chrome 17版本上会报错
q569608465 opened this issue · comments
lib/index.js文件中的Array.apply(null, {length: 12})
代码在Chrome 17版本上会报错:TypeError:Function.prototype.apply:Arguments list has wrong type.
Array.apply的第二个参数应该是一个数组,如果只有一个参数值,可以使用call方法。