Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array.apply(null, {length: 12}) 在Chrome 17版本上会报错 #29

Open
q569608465 opened this issue Mar 13, 2019 · 0 comments
Open

Array.apply(null, {length: 12}) 在Chrome 17版本上会报错 #29

q569608465 opened this issue Mar 13, 2019 · 0 comments

Comments

@q569608465
Copy link

lib/index.js文件中的Array.apply(null, {length: 12})代码在Chrome 17版本上会报错:TypeError:Function.prototype.apply:Arguments list has wrong type.

Array.apply的第二个参数应该是一个数组,如果只有一个参数值,可以使用call方法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant