-
• #2
Try to use the webide option 'Throttle send'...
-
• #3
Hi allObjects, try this ;-)
function lenc(m) { "compiled"; var l = m.length; //length without (), it is not a function return l; } function len() { var m = "123.456"; console.log(lenc(m)); //add m to call }
-
• #4
I posted this because to make user's aware of the fact that error messages caused in compiled code dont reference the compiled code. The reference points to the 'last' layer of interpreted code.
The error message is also different when invoking from with in an function o r invoking from the console directly:
Error message created on invocation of compiled code within a function().
>len(); undefined =undefined Uncaught Error: Function not found! at line 3 col 20 console.log(lenc()); ^ in function "len" called from line 1 col 5 len(); ^ >
Error message created on diret invocation of compiled code from console.
>lenc("abc"); =undefined Uncaught Error: Expecting a function to call, got Number at line 1 col 11 lenc("123.456"); ^ >
-
• #5
Thank's for sharing this. I had some problems with compiled code recently and @Gordon corrected the web ide... You should check that you have the last version. Furthermore I think that the compiled code can't effectively be debuged or interrupted from the command line. So you should check the dedicated page to compiling... Might have been obvious to you of course. :-)
-
• #6
...compilation at upload to the board dit not complain... how could it. Therefore:
There is always a first time surprise... and it may not be the last... no even the last of the same subject! ;-)
with
len()
entered/run in console complains:I know that it should read
var l = m.length;
inlenc()
... but I got there only after a while when my mind had let go of the deceipt by the error message and I took a closer look atlenc()
.