I think I remember this was indeed mentioned in the past. Pretty sure it was Harbs warning us about setting prototype function over objects. Some constructor seem to be not loaded until they are instantiated. I never had to complain about it though.
> Use case i want to use a typeof Enumerator
Well, typeof Enumerator is 'function' (while typeof myEnumerator is 'object') so you can hard-code those results as well ;-)
As for testing if some obj is an Enumerator, you might use obj.__class__=='Enumerator'.
Thanks for your reply, well i did a workaround by using obj.constructor.name.toString() == "Enumerator" and this worked as shall the workaround that you suggested.
However on a side note, i want to get some insight as to why InDesign folks implement this sort of lazy loading and is this properly documented with details. If this was discussed in this forum i would be very pleased if you or any esteemed member could point me to the said thread.
I haven't seen it documented, but lazy loading makes sense when you watch execution speed penalty with every addition to the global namespace ...