Strict Mode Is Coming To Town
yuiblog.com
yuiblog.com
WebKit nightly: yes
Firefox 4 nightly: yes
Chromium Nightly: no
Opera 10.6: no
IE9 beta: no
Anyone know what replaces this?
How would I write this (stupid code that would eventually blow the stack) without arguments.callee?
(function () {
console.log("hello world");
setTimeout(arguments.callee, 1000);
})(); (function foo() {
console.log("hello world");
setTimeout(foo, 1000);
})();I've never tripped on 0100 != 100 (and never heard of anyone who did — every programmer I've talked to knew leading zero has special meaning), but this "anachronism" allowed me to conveniently write `fs.chmod(path, 0640, cb);`. Thank you, ECMA, for pointless runtime calculations with `parseInt("0640", 8)`.
Considering javascript as a browser only language is shortsighted, especially given the existence of things like Node.js.
EDIT: After RTFA'ing, I see that octal was useful for hardware with 60 bit words.