Brendan Eich (2013-08-05T03:54:30.000Z)
domenic at domenicdenicola.com (2013-08-12T05:25:21.652Z)
David Bruant wrote: > It's not required. That's the raw reading of the spec and that's > probably what the implementations do, but it's not required. When > reading "if(Object(x) === x)", the JS engine, at the time of calling > "Object(x)" knows that the outcome won't be used except for its > identity. It also knows that what matters isn't even the identity, but > whether the identity is equal to x. In essence, the allocation isn't > required per se. Does any engine actually optimize away the wrapper? > It's a very short-lived object anyway and Generational Garbage > Collection is very efficient with them. TANSTAAFL.