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 ExplorationMutator could be extended to also be able to explore super in e.g. class definitions. This would likely require a new ExploreSuper operation which then looks at the prototype chain of this in contexts where super is valid. The following code shows how runtime introspection could be performed for the super binding:
classB{a=42;getc(){returnthis.b+1;}}classCextendsB{b=43;getc(){return"foo"}m(){console.log(Object.getOwnPropertyNames(this.__proto__.__proto__));// The following two are identical.returnReflect.get(this.__proto__.__proto__,'c',this);returnsuper.c;}}leto=newC;console.log(o.m());
The text was updated successfully, but these errors were encountered:
The ExplorationMutator could be extended to also be able to explore
super
in e.g. class definitions. This would likely require a newExploreSuper
operation which then looks at the prototype chain ofthis
in contexts wheresuper
is valid. The following code shows how runtime introspection could be performed for thesuper
binding:The text was updated successfully, but these errors were encountered: