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
Check out this branch
npm install
npm test
Checklist for author
[x] npm run lint passes
[x] References to standard library functions are cached.
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 avalue
field, and then decide, but this should do the trick.How to verify - mandatory
npm install
npm test
Checklist for author
npm run lint
passes