4 ms·
"The arguments pseudo array becomes a little bit more array-like in ES5. In strict mode, it loses its callee and caller properties." Anyone know what replaces
by j4mie 16y ago
"The arguments pseudo array becomes a little bit more array-like in ES5. In strict mode, it loses its callee and caller properties."
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);
})();
- davnola 16y agoIt looks like you're forced to use a named lambda.
- sharkbrainguy 16y ago(function foo() { console.log("hello world"); setTimeout(foo, 1000); })();