Updates:
Status: WorkingAsIntended
Comment #1 on issue 1800 by [email protected]: Wanted: Efficient way to
count the number of properties in an Object
http://code.google.com/p/v8/issues/detail?id=1800
Internally V8 always knows how many properties any object has but V8 can't
expose this information as there is no appropriate method in ECMA-262 5th.
Please bring this up with TC39 committee.
Harmony (ES6) will probably have real Map and Set (already implemented in
V8 under the flag --harmony_collections):
http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev