Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-FeatureRequest Priority-Medium
New issue 1873 by [email protected]: API is ignorant about ES5 property
descriptors
http://code.google.com/p/v8/issues/detail?id=1873
The V8 API currently is unaware of property descriptors. This prevents API
users from defining JS accessors directly (see also issue 1482, which would
probably be made obsolete by fixing this). But more seriously, it prevents
the API from correctly intercepting descriptor-related operations coming
from the JS side -- for example, Object.defineProperty or
Object.getOwnPropertyDescriptor currently bypass all interceptors, because
our API provides no way to provide suitable descriptor-aware interceptor
functions.
We should extend the API, perhaps taking the Harmony proxy API as
inspiration where suitable.
We also should have the existing interceptor API handle at least uses of
value descriptors -- for example, defineProperty should invoke setter
interceptors if called with a value descriptor, and getOwnProperty should
first invoke getter interceptors and turn non-empty results into value
descriptors.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev