summaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 00:35:42 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 00:37:30 +1100
commita05c57d01d1ef8d68cebe97e8656c832f9fe4c12 (patch)
treedb2a6a7f55629497e99504c60302dcfc4d5ea6c2 /src/lstate.js
parent4dc16cdef46f2d9176c39f7007bc84251b85570c (diff)
downloadfengari-a05c57d01d1ef8d68cebe97e8656c832f9fe4c12.tar.gz
fengari-a05c57d01d1ef8d68cebe97e8656c832f9fe4c12.tar.bz2
fengari-a05c57d01d1ef8d68cebe97e8656c832f9fe4c12.zip
src/lobject.js: Give functions and objects ids
Diffstat (limited to 'src/lstate.js')
-rw-r--r--src/lstate.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lstate.js b/src/lstate.js
index d09bebd..db046dc 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -74,6 +74,7 @@ class global_State {
constructor() {
this.id_counter = 0; /* used to give objects unique ids */
+ this.ids = new WeakMap();
this.mainthread = null;
this.l_registry = new lobject.TValue(CT.LUA_TNIL, null);