When exporting a ES6 class (constructor), natively supported unter node.js 4.x/5.x, upon instantiation you get the exception "TypeError: Class constructors cannot be invoked without 'new'", because of the indirect instantiation in utils.applyConstruct. This fixes it by directly invoked the constructor with new.
When exporting a ES6 class (constructor), natively supported unter node.js 4.x/5.x, upon instantiation you get the exception "TypeError: Class constructors cannot be invoked without 'new'", because of the indirect instantiation in
utils.applyConstruct
. This fixes it by directly invoked the constructor withnew
.