aboutsummaryrefslogtreecommitdiff
path: root/src/lstate.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 23:03:46 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 23:03:46 +1100
commit3086e2542b0e0e41f286b6e80041b473966df882 (patch)
tree5b348f9c419ed032a8c857db3c860116aa8cb129 /src/lstate.js
parente8479960e53740e501501f125358be72fc919f72 (diff)
parent085fedefe00d60eee9defa5f59a86361348e2f5c (diff)
downloadfengari-3086e2542b0e0e41f286b6e80041b473966df882.tar.gz
fengari-3086e2542b0e0e41f286b6e80041b473966df882.tar.bz2
fengari-3086e2542b0e0e41f286b6e80041b473966df882.zip
Merge branch 'object-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);