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

wpt fail: observer methods should be enumerable #68

Open
TremayneChrist opened this issue Jul 10, 2019 · 0 comments
Open

wpt fail: observer methods should be enumerable #68

TremayneChrist opened this issue Jul 10, 2019 · 0 comments
Labels
enhancement New feature or request spec v4 Add to version 4 of the library
Milestone

Comments

@TremayneChrist
Copy link
Member

Currently the methods on the object are not set to be enumerable and the following code will print nothing.

const ro = new ResizeObserver(() => {});

for (let key in ro) {
  console.log(ro);
}

// observe
// unobserve
// disconnect
@TremayneChrist TremayneChrist added enhancement New feature or request spec labels Jul 10, 2019
@TremayneChrist TremayneChrist added this to the v4 milestone Mar 4, 2020
@TremayneChrist TremayneChrist added the v4 Add to version 4 of the library label Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spec v4 Add to version 4 of the library
Projects
None yet
Development

No branches or pull requests

1 participant