Skip to content

Variables declared in outer function can not be cached (v1.2) #1

@jingwood

Description

@jingwood

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions