Skip to content

Conversation

@fatso83
Copy link
Contributor

@fatso83 fatso83 commented Apr 25, 2024

Purpose (TL;DR) - mandatory

Fix the issue in #2589 by checking for the odd case where we actually force setting a value through accessor functions and only look up the value at that time.

The alternative would be more elaborate, check if the descriptor had a get or a value field, and then decide, but this should do the trick.

How to verify - mandatory

  1. Check out this branch
  2. npm install
  3. npm test

Checklist for author

  • npm run lint passes
  • References to standard library functions are cached.

of creating restorerer function. Check for the odd case
where we actually force setting a value through accessor
functions and only look up the value at that time.

The alternative would be more elaborate, check if the
descriptor had a `get` or a `value` field, and then
decide, but this should do the trick.
@fatso83 fatso83 merged commit ec4d592 into main Apr 25, 2024
@fatso83 fatso83 deleted the fix-2589-direct-access-with-side-effect branch April 25, 2024 12:30
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