8000 Variables declared in outer function can not be cached (v1.2) · Issue #1 · unvell/ReoScript · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Variables declared in outer function can not be cached (v1.2) #1
Closed
@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

    0