You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code should be works on inherit Class static properties.
Babel treats the inheritance in ES2015 as follow:
function_inherits(subClass,superClass){if(typeofsuperClass!=='function'&&superClass!==null){thrownewTypeError('Super expression must either be null or a function, not '+typeofsuperClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor: {value: subClass,enumerable: false,writable: true,configurable: true}})// inherit `Class` static propertiesif(superClass)Object.setPrototypeOf ? Object.setPrototypeOf(subClass,superClass) : (subClass.__proto__=superClass)}
to-factory/index.js
Line 5 in 200a079
The above code should be works on inherit
Class
static properties.Babel treats the inheritance in ES2015 as follow:
So, the below code should be more robuster.
The text was updated successfully, but these errors were encountered: