diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-21 14:05:14 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-21 14:05:14 +0100 |
commit | c4b23126f0cb803ec944c5d7877bbf669f582374 (patch) | |
tree | 9c2bf5740ee89268e57f73574ec3abe870a4e160 /src/lobject.js | |
parent | 932875c87ab3f2ed2b676a98f273392661535f65 (diff) | |
download | fengari-c4b23126f0cb803ec944c5d7877bbf669f582374.tar.gz fengari-c4b23126f0cb803ec944c5d7877bbf669f582374.tar.bz2 fengari-c4b23126f0cb803ec944c5d7877bbf669f582374.zip |
Userdata are ArrayBuffers, new lightuserdata subtype for js objects
Diffstat (limited to 'src/lobject.js')
-rw-r--r-- | src/lobject.js | 8 |
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); |