Re:V8 Optimization Killers
by ekmartin on Wednesday June 25, 2014 @09:56AM
(#7943848)
I think minifiers use the former because it's shorter, and thus requires less space.
[ Parent
| on HN ]
the other benefit is that `void 0` cannot be overwritten in sloppy mode, whereas you can do something crazy like this:
undefined = 'lol';No you can't. You can do something like function(undefined) {}, but the global 'undefined' is non-writable and non-configurable.
That's an ES5 change. With ES3, you can overwrite NaN, Infinity, and undefined.
Only in strict mode I though no ?