Skip to content

Polyfills are enumerable in PhantomJS #648

Closed

Description

Running the following code in PhantomJS:

var x = []; for (var y in x) { console.log(y) };

yields

find
includes

in the console.

If the functions are set via Object.defineProperty, you can specify enumerable property (you don't actually have to; it defaults to false).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions