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
I suggest changing line 31
'- var prototype = Object.getPrototypeOf(object)
'+ var prototype;
switch (typeof object) {
case 'function': // class
prototype = object.prototype;
break;
case 'object': // instance of a class
prototype = Object.getPrototypeOf(object);
break;
default:
throw new Error('The argument has to be a class or an instance of a class.');
}
The text was updated successfully, but these errors were encountered:
I suggest changing line 31
'- var prototype = Object.getPrototypeOf(object)
'+ var prototype;
switch (typeof object) {
case 'function': // class
prototype = object.prototype;
break;
case 'object': // instance of a class
prototype = Object.getPrototypeOf(object);
break;
default:
throw new Error('The argument has to be a class or an instance of a class.');
}
The text was updated successfully, but these errors were encountered: