code using the 'use strict' directive is identified by the editor, but brings up error message for built-in library functions (see attached image)
function test_strict(){ "use strict"; var N=false; // oops - typo... setInterval( function(){ LED2.write( n); n = !n; },1000); }
is there any libraray available to satisfy the editor's strict validator?
ps: the esprima minifyer ignores the strict directive, and reports even bad code to be fine
1 Attachment
@andiy started
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.
code using the 'use strict' directive is identified by the editor, but
brings up error message for built-in library functions (see attached image)
is there any libraray available to satisfy the editor's strict validator?
ps: the esprima minifyer ignores the strict directive, and reports even bad code to be fine
1 Attachment