summaryrefslogtreecommitdiff
path: root/src/lobject.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lobject.js')
-rw-r--r--src/lobject.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lobject.js b/src/lobject.js
index e1c3e97..dfe6337 100644
--- a/src/lobject.js
+++ b/src/lobject.js
@@ -57,6 +57,14 @@ class TValue {
ttislightuserdata() {
return this.checktag(CT.LUA_TLIGHTUSERDATA);
}
+
+ ttisobject() {
+ return this.checktag(CT.LUA_TLIGHTUSERDATA_OBJ);
+ }
+
+ ttisptr() {
+ return this.checktag(CT.LUA_TLIGHTUSERDATA_PTR);
+ }
ttisstring() {
return this.checktype(CT.LUA_TSTRING);