Skip to content

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

Open
@q569608465

Description

@q569608465

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions