isaacs / proto-list

A list of objects bound by prototype chain
ISC License
20 stars 2 forks source link

Trouble with Node 0.11 #1

Closed tschaub closed 10 years ago

tschaub commented 10 years ago

It looks like the proto-list tests don't pass on Node 0.11.13 (at least). Properties are not acquired from the assigned __proto__ object. If this is a known limitation, is there a similar alternative for Node 0.11?

isaacs commented 10 years ago

Wow, that sounds like a pretty awful web-breaking V8 bug. I'll dig into this and see if there's a workaround.

isaacs commented 10 years ago

Yep, it's a V8 bug.

https://code.google.com/p/v8/issues/detail?id=3377&thanks=3377&ts=1402008687

isaacs commented 10 years ago

Not a V8 bug! Just a weird corner of the spec, but working as designed, turns out.

Fixed on v1.2.3 by using Object.setPrototypeOf if availabl.e