DescriptionBetter security checks when accessing named properties via Object.getOwnPropertyDescriptor.
Current approach returns undefined descriptor if caller is not granted v8::HAS_ACCESS.
If the caller has v8::HAS_ACCESS, for no JS accessors regular v8::GET_ACCESS check is
performed and value property of the descriptor is set to undefined if caller doesn't
have proper access. For JS accessors both v8::GET_ACCESS and v8::SET_ACCESS are checked
and affect if getter and setter would be stored in the descriptor.
Committed: http://code.google.com/p/v8/source/detail?r=6592
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addressing Mads' comments #
Messages
Total messages: 4 (0 generated)
|