Skip to content

Editorial: OrdinaryDefineOwnProperty can't throw for ordinary objects and arrays #3403

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anba
Copy link
Contributor

@anba anba commented Aug 26, 2024

OrdinaryDefineOwnProperty can return an abrupt completion if either O.[[GetOwnProperty]] or IsExtensible(O) returns an abrupt completion. When O is an ordinary object or an array, neither O.[[GetOwnProperty]] nor IsExtensible(O) can return an abrupt completion, therefore OrdinaryDefineOwnProperty is infallible.

@anba anba force-pushed the infallible-ordinary-define-own-prop branch 2 times, most recently from 53123e3 to 72e160c Compare August 26, 2024 05:55
… and arrays

`OrdinaryDefineOwnProperty` can return an abrupt completion if either
`O.[[GetOwnProperty]]` or `IsExtensible(O)` returns an abrupt completion. When
`O` is an ordinary object or an array, neither `O.[[GetOwnProperty]]` nor
`IsExtensible(O)` can return an abrupt completion, therefore
`OrdinaryDefineOwnProperty` is infallible.
@anba anba force-pushed the infallible-ordinary-define-own-prop branch from 72e160c to 4f111c1 Compare February 6, 2025 17:35
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.

2 participants