summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-02 07:36:14 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-02 07:36:14 +0100
commitfa7ce109418aca2fd60fdb65b4b2451c4854dd09 (patch)
treec6469ea5d437374a7db0980422a18c32d9a6fb61 /src/lobject.js
parentebeb32400b9a2d3e7196887f7021b9bf08770fd9 (diff)
downloadfengari-fa7ce109418aca2fd60fdb65b4b2451c4854dd09.tar.gz
fengari-fa7ce109418aca2fd60fdb65b4b2451c4854dd09.tar.bz2
fengari-fa7ce109418aca2fd60fdb65b4b2451c4854dd09.zip
Following Lua's source code as closely as possible
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js
new file mode 100644
index 0000000..2e21f16
--- /dev/null
+++ b/src/lobject.js
@@ -0,0 +1,15 @@
+/*jshint esversion: 6 */
+"use strict";
+
+class LClosure {
+
+ constructor(L, n) {
+ this.p = [];
+ this.nupvalues = n;
+ }
+
+}
+
+module.exports = {
+ LClosure: LClosure
+}; \ No newline at end of file