Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
phpnode
on June 25, 2014
|
parent
|
context
|
favorite
| on:
V8 Optimization Killers
the other benefit is that `void 0` cannot be overwritten in sloppy mode, whereas you can do something crazy like this:
undefined = 'lol';
evilpie
on June 25, 2014
[–]
No you can't. You can do something like function(undefined) {}, but the global 'undefined' is non-writable and non-configurable.
ahoge
on June 25, 2014
|
parent
[–]
That's an ES5 change. With ES3, you can overwrite NaN, Infinity, and undefined.
LunaSea
on June 25, 2014
|
root
|
parent
[–]
Only in strict mode I though no ?
ahoge
on June 25, 2014
|
root
|
parent
[–]
Generally. Technically, it's a "breaking change".
As you can imagine, this didn't actually affect anyone.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: