Closed
Description
Variables declared in outer function but used in inner function can not be cached so the following code does not work in ReoScript.
fun1 = function() {
var cached_var = 10;
return function() {
console.log('cached_var = ' + cached_var);
};
} ();
fun1();
The result is that cached_var is null.