Status: Assigned
Owner: [email protected]
CC: [email protected],  [email protected],  [email protected]
Labels: Type-Bug Priority-Medium

New issue 725 by [email protected]: Named interceptor properties should not be enumerable if query callback is missing.
http://code.google.com/p/v8/issues/detail?id=725

Currently v8 in the case when query callback of named interceptor is missing, treats present properties (ones for which getter returns not empty handle) as
having NONE attributes and hence enumerable, see
JSObject::GetPropertyAttributeWithInterceptor in objects.cc.

However, if enumerator is missing, such properties couldn't be retrieved in
enumeration (unless one is wise enough to guess all those properties :), see
GetKeysFromNamedInterceptor in handles.cc.

That leads to the properties which are enumerable, however cannot be
retrieved by constructions like for p in o.



--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to