I have a typical call hierarchy
class A
{
mirm(){
//stuff here
}
}
class B extends A
{
constructor(){
//obtain a promise
promise().then(this.setUp)
}
setUp(){
super.mirm();
}
}
Could it be that the promise might be doing something to the scope? I would actually expect for you to be able to do something like this.mirm()
from the setUp
function since it should just follow the prototype chain. What gives? I am compiling with babel and have es2015 as target.