summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 8d6b6a3..3cbde26 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -8,9 +8,12 @@ const lua = require('./lua.js');
const CT = lua.constant_types;
const UpVal = require('./lfunc.js').UpVal;
+let tvalueCount = 0;
+
class TValue {
constructor(type, value) {
+ this.id = tvalueCount++;
this.type = type;
this.value = value;
this.metatable = null;