Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, it amonts to Array.prototype.reverse.call(window) - window doesn't have a reverse method AFAIK, so window.reverse() will raise a TypeError (since you can't call something "undefined").


are you sure? i thought in js functions are not really tied to "their" object, instead they receive an implicit this argument. wouldn't x belong to window here? that is, window doesn't have reverse, but now it has x




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: