mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
19 lines
327 B
JavaScript
19 lines
327 B
JavaScript
/* After relatively recent memory optimisation, functions that start with 'return'
|
|
are stored as special types. Overwriting one with another caused issues. */
|
|
|
|
function a() {
|
|
return 41;
|
|
}
|
|
function a() {
|
|
if (1) return 42;
|
|
}
|
|
|
|
function b() {
|
|
if (1) return 10;
|
|
}
|
|
function b() {
|
|
return 11;
|
|
}
|
|
|
|
result = a()==42 && b()==11;
|