summaryrefslogtreecommitdiff
path: root/src/lfunc.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-04 09:01:25 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-04 22:17:24 +0100
commit18b89ee8e1059a21f8d5e3a52c2e256b7dea79cb (patch)
tree3f215ba709174b057ea76b2a8b0fbb2f6ad850e5 /src/lfunc.js
parentb618b835c74a8637e00ba1f4adf6b8884d360d43 (diff)
downloadfengari-18b89ee8e1059a21f8d5e3a52c2e256b7dea79cb.tar.gz
fengari-18b89ee8e1059a21f8d5e3a52c2e256b7dea79cb.tar.bz2
fengari-18b89ee8e1059a21f8d5e3a52c2e256b7dea79cb.zip
CLOSURE, CALL
Diffstat (limited to 'src/lfunc.js')
-rw-r--r--src/lfunc.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lfunc.js b/src/lfunc.js
index faa0887..929dae8 100644
--- a/src/lfunc.js
+++ b/src/lfunc.js
@@ -21,7 +21,22 @@ class Proto {
}
+class UpVal {
+
+ constructor() {
+ this.v = null;
+ this.u = {
+ open: {
+ next: null,
+ touched: false
+ },
+ value: null
+ };
+ }
+
+}
module.exports = {
- Proto: Proto
+ Proto: Proto,
+ UpVal: UpVal
}; \ No newline at end of file