Skip to content

fix: preserve propertyIsEnumerable key conversion order - #1819

Open
SomSamantray wants to merge 3 commits into
quickjs-ng:masterfrom
SomSamantray:fix/property-is-enumerable-key-order-1772
Open

SomSamantray wants to merge 3 commits into
quickjs-ng:masterfrom
SomSamantray:fix/property-is-enumerable-key-order-1772

Conversation

@SomSamantray

Copy link
Copy Markdown
Contributor

Summary

Object.prototype.propertyIsEnumerable now converts the property key before rejecting a null or undefined receiver. If key conversion throws, that original exception is preserved, as required by ECMAScript.

Validation

  • Reproductions with both null and undefined receivers print 0 when key conversion throws.
  • /tmp/run-test262-issue1772 -c tests.conf passes: 0/120 errors, 9 excluded.

Fixes #1772

AI disclosure

Prepared with OpenAI Codex assistance.

This branch has not been deployed

No deployments
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.

Object.prototype.propertyIsEnumerable converts this before the property key

1 participant