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

Property descriptors #4788

Closed
wants to merge 2 commits into from

Conversation

swansontec
Copy link

The core type library was using any as the type for Object.getOwnPropertyDescriptor and friends. This pull request fixes that by defining a proper Object$PropertyDescriptor type, and applying it to all the relevant functions. It also adds the ES2017 'Object.getOwnPropertyDescriptors' method for good measure.

This pull request affects a gazillion files, since it changes line numbers in core.js. Sorry about that.

@swansontec
Copy link
Author

Sorry for the churn on this; I made some mistakes in the original commits, which were not in line with the ES spec.

@nmote
Copy link
Contributor

nmote commented Sep 11, 2017

Could you link supporting docs?

@bakkot
Copy link

bakkot commented May 16, 2018

It looks like this was done in #5067, other than getOwnPropertyDescriptors.

@swansontec
Copy link
Author

Cool! That's what we needed.

@swansontec swansontec closed this May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants