aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lobject.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js
index 5a202d4..5918a84 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -147,6 +147,11 @@ class TValue {
this.value = x;
}
+ sethvalue(x) {
+ this.type = CT.LUA_TTABLE;
+ this.value = x;
+ }
+
setfrom(tv) { /* in lua C source setobj2t is often used for this */
this.type = tv.type;
this.value = tv.value;