-
Notifications
You must be signed in to change notification settings - Fork 155
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
Object.getOwnPropertyDescriptor and array length property #6
Comments
please, try the patch below
|
>> JSON.stringify(Object.getOwnPropertyDescriptor([], 'length'))
{"value":0,"configurable":"false","enumerable":"false","writable":"false"}
>> JSON.stringify(Object.getOwnPropertyDescriptor([1,2,3], 'length'))
{"value":3,"configurable":"false","enumerable":"false","writable":"false"} I think there should be |
This was referenced Mar 1, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the length property in an empty array is handled incorrectly, and for non empty array an invalid result is returned:
The text was updated successfully, but these errors were encountered: