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
Building this to targets, like es2016, without private methods lead to a free standing function with the super keyword.
var__accessCheck=(obj,member,msg)=>{if(!member.has(obj))throwTypeError("Cannot "+msg);};var__privateAdd=(obj,member,value2)=>{if(member.has(obj))throwTypeError("Cannot add the same private member more than once");memberinstanceofWeakSet ? member.add(obj) : member.set(obj,value2);};var__privateMethod=(obj,member,method)=>{__accessCheck(obj,member,"access private method");returnmethod;};var_priv,priv_fn;classB{getValue(){return5;}}classDextendsB{constructor(){super(...arguments);__privateAdd(this,_priv);}pub(){return__privateMethod(this,_priv,priv_fn).call(this);}}_priv=newWeakSet();priv_fn=function(){returnsuper.getValue();};
This output is not valid javascript.
The text was updated successfully, but these errors were encountered:
The following example contains a call to a super class method in a base class using the keyword super.
Building this to targets, like es2016, without private methods lead to a free standing function with the super keyword.
This output is not valid javascript.
The text was updated successfully, but these errors were encountered: