provegard / ncdbg

A debugger for Nashorn that uses Chrome DevTools as frontend
BSD 3-Clause "New" or "Revised" License
31 stars 5 forks source link

The __proto__ of a CoffeeScript class isn't the base class #41

Open provegard opened 7 years ago

provegard commented 7 years ago

Investigate if this is ok or wrong!

Given:

class Base
class Sub extends Base

...inspecting the properties of a Sub instance shows the proto property to be named Sub as well. That in turn has Base as proto.

provegard commented 7 years ago

Chrome does this:

image