Closed silkentrance closed 8 years ago
Well, it seems to be related to babel 6.x which is no longer able to declare new properties on subclasses of native classes such as Error.
@silkentrance Do you know if this is a bug and what version of babel it might be fixed in? Thanks.
@jmcriffey Sorry i missed that notification. Well, this will not be fixed since it is rather complicated. See https://phabricator.babeljs.io/T6765.
Instead there is now a transformer plugin for enabling users to derive from native classes, so it is can be considered fixed in some way.
I have just upgraded my environment to babel 6.x and I am now missing coverage on getters and also setters. While both the getters and setters will be instrumentalized, it seems that by accessing them in the test cases, e.g.
and having the below tests
will generate no coverage data at all.