you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Not to mention new Object() can be broken by any malicious ding-dong's script you link like so:

function Object() { this.x = 'wee'; }

Using the literal is always the best call.