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

Implement Object.hasOwn #960

Merged
merged 3 commits into from Sep 18, 2021
Merged

Implement Object.hasOwn #960

merged 3 commits into from Sep 18, 2021

Conversation

KurtGokhan
Copy link
Contributor

@KurtGokhan KurtGokhan commented Sep 18, 2021

This PR implements Object.hasOwn

It is still a proposal (Github) but most major browsers implement it already.

I don't know what is your usual procedure for testing this kind of stuff, but I got the tests from V8 source code.

@lahma
Copy link
Collaborator

lahma commented Sep 18, 2021

I guess test262 repo already has test cases? They usually are the truth.

https://github.com/tc39/test262/tree/main/test/built-ins/Object/hasOwn

So basically copying them to correct place in test262 project's folder.

@KurtGokhan
Copy link
Contributor Author

Should I copy them manually or is there a script to do it?

@lahma
Copy link
Collaborator

lahma commented Sep 18, 2021

Manually currently. There's a PR to use npm, but now just manually copy of the folder.

@KurtGokhan
Copy link
Contributor Author

Done.

@lahma lahma merged commit 87ee8e2 into sebastienros:main Sep 18, 2021
@lahma
Copy link
Collaborator

lahma commented Sep 18, 2021

Thanks, great work again.

@KurtGokhan KurtGokhan deleted the object-hasown branch September 18, 2021 14:49
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

Successfully merging this pull request may close these issues.

None yet

2 participants