In this question it is recommended in order get all native objects to use the global object. However the answer is incomplete as there are other native objects which are not accessible through the global object.
I know of at least one– Arguments which has no reference from the global object. What other constructors are not accessible through the global object?
This question is not limited to browsers, but could include Node as well.
When you list all objects referenced on the global object, that will include native objects (core language objects) and host objects (supplied by the host environment; in a browser, all the DOM stuff, and more). That’s all we can use on our code.
There is no
Argumentsconstructor on that list. There could be one, but there isn’t:Roughly, that operation creates a regular
Object(standard constructor, standard prototype), extends it with some extra properties likelength, and sets its[[Class]]internal property to"Arguments". That’s whyarguments.toString()is[object Arguments].