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

Polyfills are enumerable in PhantomJS #648

Closed
waabid opened this issue Dec 15, 2017 · 1 comment
Closed

Polyfills are enumerable in PhantomJS #648

waabid opened this issue Dec 15, 2017 · 1 comment

Comments

@waabid
Copy link
Contributor

waabid commented Dec 15, 2017

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).

@WilcoFiers
Copy link
Contributor

Issue resolved, thanks for the contribution!

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

2 participants