We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug According to the spec, HasOwnProperty should be calling GetOwnProperty. However, Boa is calling getProperty as seen here: https://github.com/boa-dev/boa/blob/master/boa/src/builtins/object/mod.rs#L611
HasOwnProperty
GetOwnProperty
getProperty
To Reproduce
var x = { someProp: 1 }; console.log(x.hasOwnProperty('someProp'); console.log(x.hasOwnProperty('hasOwnProperty');
Expected behavior The above code should return true and false, respectively. However, Boa is returning true for both.
Build environment (please complete the following information):
Additional context You can find more information on MDN.
The text was updated successfully, but these errors were encountered:
I'll also take the issue.
Sorry, something went wrong.
n14little
Successfully merging a pull request may close this issue.
Describe the bug
According to the spec,
HasOwnProperty
should be callingGetOwnProperty
. However, Boa is callinggetProperty
as seen here: https://github.com/boa-dev/boa/blob/master/boa/src/builtins/object/mod.rs#L611To Reproduce
Expected behavior
The above code should return true and false, respectively. However, Boa is returning true for both.
Build environment (please complete the following information):
Additional context
You can find more information on MDN.
The text was updated successfully, but these errors were encountered: