Espruino/tests/test_function_decl.js
2015-11-03 16:52:00 +00: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 aaaaaaaaa\nssssssss\n}")
var r=a.toString();
result = r=="function () {\n aaaaaaaaa\nssssssss\n}";