You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MERGE #5710@rhuanjl] Do not skip FromPropertyDescriptor in Proxy DefineOwnProperty
Merge pull request #5710 from rhuanjl:defineProperty
Fix bug in JavascriptProxy::DefineOwnPropertyDescriptor
1. Previously the FromPropertyDescriptor call was skipped if the descriptor came from ToPropertyDescriptor BUT in the case of a descriptor object with a getter this could result in it being called twice
2. Update comments with spec text in this function as they were out of date
3. Add test case for point 1
Fixes: #5680
//9. NOTE If Desc was originally generated from an object using ToPropertyDescriptor, then descObj will be that original object.
1744
-
//10. Let trapResult be the result of calling the[[Call]] internal method of trap with handler as the this value and a new List containing target, P, and descObj.
1745
-
//11. Let booleanTrapResult be ToBoolean(trapResult).
1746
-
//12. ReturnIfAbrupt(booleanTrapResult).
1747
-
//13. If booleanTrapResult is false, then return false.
1748
-
//14. Let targetDesc be the result of calling the[[GetOwnProperty]] internal method of target with argument P.
0 commit comments