What does the Object function do in Javascript when used with the "new" keyword?
===

In [this][1] answer, I instructed the questioner not to overwrite the native `Object` function in Javascript, because I thought that it would mess up the object creation process.

But then, I thought about it, and figured that it's pretty unlikely that *all* objects are actually created using this function, along with the `new` keyword.

For example, is it used when objects are created with a literal notation (`var a = {...}`)? Or does it simply do `this = {}`? Is it possible to actually assign values to `this` at all?

I saw [this][2] question, that is similar, and apparently `Object` behaves differently when used without the `new` keyword... How is the function actually implemented?


  [1]: http://gamedev.stackexchange.com/a/31386/9736
  [2]: http://stackoverflow.com/q/5717863/924313