diff options
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 5 |
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; |