This question is almost identical to How to efficiently count the number of keys/properties of an object in JavaScript?.
I want to know one extra piece of information: w
See the source, specifically GetLocalElementKeys
GetLocalElementKeys
v8 objects.cc