summaryrefslogtreecommitdiff
path: root/src/ltable.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltable.js')
-rw-r--r--src/ltable.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ltable.js b/src/ltable.js
index e4d21e2..0ed56ab 100644
--- a/src/ltable.js
+++ b/src/ltable.js
@@ -39,9 +39,14 @@ class Table {
this.f = void 0; /* first entry */
this.l = void 0; /* last entry */
this.metatable = null;
+ this.flags = ~0;
}
}
+const invalidateTMcache = function(t) {
+ t.flags = 0;
+};
+
const add = function(t, hash, key, value) {
t.dead_strong.clear();
t.dead_weak = void 0;
@@ -204,6 +209,7 @@ const luaH_next = function(L, table, keyI) {
return true;
};
+module.exports.invalidateTMcache = invalidateTMcache;
module.exports.luaH_delete = luaH_delete;
module.exports.luaH_get = luaH_get;
module.exports.luaH_getint = luaH_getint;