From a05c57d01d1ef8d68cebe97e8656c832f9fe4c12 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 10 Dec 2017 00:35:42 +1100 Subject: src/lobject.js: Give functions and objects ids --- src/lstate.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lstate.js') 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); -- cgit v1.2.3-54-g00ecf