From 48b5ebfac37a9d0e4c3622530121e28a50a38a38 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 3 May 2017 16:11:25 +1000 Subject: Move .id field from TValue to values themselves --- src/ltable.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ltable.js') diff --git a/src/ltable.js b/src/ltable.js index 0d711b4..874a9f0 100644 --- a/src/ltable.js +++ b/src/ltable.js @@ -36,6 +36,7 @@ const table_hash = function(key) { const luaH_new = function(L) { let t = { + id: L.l_G.id_counter++, strong: new Map(), metatable: null }; -- cgit v1.2.3-54-g00ecf