Hacker News new | past | comments | ask | show | jobs | submit login

foo.constructor actually doesn’t matter; foo.__proto__ == Foo.prototype is the one that actually makes things chug, and you can change the class of a value by changing its __proto__.



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

Search: