Your method above won't support arguments to the constructor - my code supports zero, 1 and 7 arguments. Gordon seemed to think my method was fine :)
I just retested with minify off, and I get the same sort of bizarre error.
I then just copied the whole of Date and Clock modules into RHS, and fixed
the exports to use a variable - and it all works.
Just to double-check, I copied the modules to the SD card - again it works fine.
These errors strongly suggest that throttle isn't working and characters or chunks of source are being dropped. I could just copy the files to SD card and re-test.
Gordon - I have 1v61, Chrome 34.0.1847.116 on Win 8.1 pro
I think this may be only happening because I'm nesting requires. Not sure.
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.
DrAzzy
Your method above won't support arguments to the constructor - my code supports zero, 1 and 7 arguments. Gordon seemed to think my method was fine :)
I just retested with minify off, and I get the same sort of bizarre error.
I then just copied the whole of Date and Clock modules into RHS, and fixed
the exports to use a variable - and it all works.
Just to double-check, I copied the modules to the SD card - again it works fine.
These errors strongly suggest that throttle isn't working and characters or chunks of source are being dropped. I could just copy the files to SD card and re-test.
Gordon - I have 1v61, Chrome 34.0.1847.116 on Win 8.1 pro
I think this may be only happening because I'm nesting requires. Not sure.
Martin