I'm trying to call a super
method from inside a different scope, but this doesn't appear to be working.
'use strict';
class One {
test() {
console.log('test');
}
}
class Two extends One {
hi() {
super.test();
}
hello() {
var msg = 'test';
return new Promise(function(resolve, reject) {
console.log(msg);
super.test();
});
}
}
var two = new Two();
two.hi();
two.hello();