Y
Hacker News
new
|
ask
|
show
|
jobs
by
chrismorgan
792 days ago
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__.