Description[api] Add interceptor for getOwnPropertyDescriptor().
The existing PropertyQueryCallback intercepts getOwnPropertyDescriptor, but
it returns only value and attributes, not the accessors. This
PropertyDescriptorCallback returns a descriptor similar to Ecma-262 6.2.4.
You can either set a PropertyQueryCallback or a PropertyDescriptorCallback,
but not both. When you set a callback for DefineProperty(), you can set a
PropertyDescriptorCallback but not a PropertyQueryCallback.
BUG=v8:5359
Committed: https://crrev.com/b0a7738a5feb75d23a9707393d102cc34814fbf7
Cr-Commit-Position: refs/heads/master@{#39279}
Patch Set 1 #Patch Set 2 : Improve comments. #Patch Set 3 : Do not restart iterator. #Patch Set 4 : Add test for invalid descriptor. #Patch Set 5 : Rename and comments. #
Total comments: 4
Patch Set 6 : Address review comments. #Patch Set 7 : Crash instead of exception on invalid descriptor. #
Messages
Total messages: 35 (25 generated)
|