You are reading a single comment by @Konkery and its replies.
Click here to read the full conversation.
-
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