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

Tests should cover AssignmentExpression with exotic [[Set]] and/or [[DefineOwnProperty]] #3836

Open
gibson042 opened this issue May 26, 2023 · 0 comments

Comments

@gibson042
Copy link
Contributor

The result of an expression like [].length = "4" must be a string, even though array objects apply special processing to the input that results in the input value being coerced to a uint32 number before it affects the property descriptor. Most implementations get this right, but it's subtle and not covered by test262 AFAICT (and there's an example of getting it wrong at Moddable-OpenSource/moddable#1123 ).

We should probably add some coverage for this case, along with other assignment operators and other receivers (good candidates include proxies, strings, arguments objects, typed arrays, and anything else mentioned in Built-in Exotic Object Internal Methods and Slots).

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

No branches or pull requests

1 participant