README suggests classes can be constructed using new
but this does not appear to be the case.
#46
Labels
new
but this does not appear to be the case.
#46
As shown and stated here.
Relevant example shown in README:
Specifically, line 45 of
index.js
contains code which eventually returns an instance of(...args) => new Class(...args)
(which has been like this for over 6 months ago), which cannot be called as a constructor (Since it is an arrow function).Using
function(...args) { return new Class(...args) }
instead would make the code work (without compilation) for platforms that disallow arrow functions as constructors (As required by ES6).The text was updated successfully, but these errors were encountered: