Espruino/tests/test_function_decl.js
2017-10-06 15:50:40 +01:00

7 lines
213 B
JavaScript

// issue with function decls when the last token is right at the end of the line
var a=eval("function a() {\n 12345\nssssssss\n}")
var r=a.toString();
result = r.replace(/\s/g,"")=="function(){12345ssssssss}";