O
optimistx
for (var i in obj) {assert( i + ': ' +obj)}
gives some properties of obj, but not all. How to find all the properties of
obj? If one has to know the names before asking their values, how to find
all possible names? The ECMA-262 spec mentions e.g. DontEnum, DontDelete,
Internal, ReadOnly, and there are some browser specific like __proto__ .
I am mainly interested in the properties in the beginning of the prototype
chain, like Object, Object.prototype, Function, {}. Dom -elemets give so
many properties in the for -loop that there is no desire to look fort more,
so far
gives some properties of obj, but not all. How to find all the properties of
obj? If one has to know the names before asking their values, how to find
all possible names? The ECMA-262 spec mentions e.g. DontEnum, DontDelete,
Internal, ReadOnly, and there are some browser specific like __proto__ .
I am mainly interested in the properties in the beginning of the prototype
chain, like Object, Object.prototype, Function, {}. Dom -elemets give so
many properties in the for -loop that there is no desire to look fort more,
so far