Skip to content

Parsing error on pages with modified Array prototypes #797

@anulman

Description

@anulman

A script we distribute uses ua-parser-js, and [this line] throws errors for a site that assigns Array.prototype.isEmpty, since the for...in loop also checks isEmpty (vs. a for...of or for (var i=0; i < foo.length; i++) { ... }).

It looks like the latter syntax is preferred in this project. I'm going to open a patch with it

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