Skip to content

Fix set Iterator.prototype.constructor for non-object values#1553

Merged
saghul merged 2 commits into
masterfrom
fix-iterator-constructor-setter
Jun 30, 2026
Merged

Fix set Iterator.prototype.constructor for non-object values#1553
saghul merged 2 commits into
masterfrom
fix-iterator-constructor-setter

Conversation

@saghul

@saghul saghul commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #1552

saghul added 2 commits June 30, 2026 10:03
…e receiver

SetterThatIgnoresPrototypeProperties uses CreateDataPropertyOrThrow when
the receiver has no own property, which must throw if the property cannot
be created (e.g. a non-extensible object).
@saghul saghul merged commit 93d3f7d into master Jun 30, 2026
125 checks passed
@saghul saghul deleted the fix-iterator-constructor-setter branch June 30, 2026 08:45
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.

set Iterator.prototype.constructor throws TypeError: not an object when this is an ordinary object

1 participant