Hi everybody, i'm creating a module for my tiny webserver framework and i have a problem with a module if is not required in the main javascript code.
Let me explain better:
in the main code i require module A that requires module C
in the main code i require module B that requires module C
i never need to require module C in the main code but if i don't do it the code dies when it require the module b because it says that module c does not exists...
I attach the code (i only kept the code usefull to understand the problem)
Is this an Espruino bug? can it be fixed? is it just a stupid idea? :D
Thanks in advance
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi everybody, i'm creating a module for my tiny webserver framework and i have a problem with a module if is not required in the main javascript code.
Let me explain better:
in the main code i require module A that requires module C
in the main code i require module B that requires module C
i never need to require module C in the main code but if i don't do it the code dies when it require the module b because it says that module c does not exists...
I attach the code (i only kept the code usefull to understand the problem)
Is this an Espruino bug? can it be fixed? is it just a stupid idea? :D
Thanks in advance
1 Attachment