-
Sat 2019.03.02
I wish I had as much time as you do @allObjects to try all these situations. ;-)
I'm not worthy. (ref Wayne's World)Good catch Line #18
class B extends A
That and; It is most likely 1v96 that is causing the headache as I pointed out in #11 and that @opichals may not have tested using 2v01 as did you.
(ref mods to extends-super and constructor scope that occurred 2v00-2v01)Law of unintended consequences not keeping up on current releases. . . .
-
Console conclusion at implementation of your code:
____ __ / _/_____ / /__ _____ ____ _ / / / ___// //_// ___// __ `/ _/ / (__ )/ ,< / / / /_/ / /___//____//_/|_|/_/ \__,_/ Based on Espruino 1v96.43 (c) 2018 G.Williams, Amperka LLC Support the work of core developers: http://espruino.com/Donate > =undefined Uncaught Error: Function "asyncFuncA" not found! at line 1 col 7 _this.asyncFuncA(); ^ in function called from system
@Konkery, did you even try? where is your 'correct' code and the console output? ...because it just works...
Here the fixed code (w/ B extending A) with the two presented options for tackling the correct context:
And related console output (PICO w/ Espruino 2v01):
Since there were other bugs in the code - missing parent class reference
extends B
- , I'm suspicious about even needing the work around - with correct code... I try now the code with out the tackling of the this context, but with fixed class B... (and some more identifiable output in the console):AND IT WORKS TOO - I assume now that you ran a different code than what you pug in post #1,... and that code is buggy on some other terms...
...and related output:
Conclusion: Everything is just fine... @Gordon: 100 pts, @candidate: 0 - GAME OVER