summaryrefslogtreecommitdiff
path: root/src/ltm.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-03-24 16:40:29 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-03-24 16:40:29 +0100
commit7af8347dbb7a8c3a09d2aebccd5f96384a7c55c3 (patch)
tree174de728b42de05b68f8ad10d1b0efddf6c188e0 /src/ltm.js
parent12944ea4d52a330b8b015af296dbbdee3fb4abbd (diff)
downloadfengari-7af8347dbb7a8c3a09d2aebccd5f96384a7c55c3.tar.gz
fengari-7af8347dbb7a8c3a09d2aebccd5f96384a7c55c3.tar.bz2
fengari-7af8347dbb7a8c3a09d2aebccd5f96384a7c55c3.zip
Proper use of luaO_nilobject
Diffstat (limited to 'src/ltm.js')
-rw-r--r--src/ltm.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ltm.js b/src/ltm.js
index e48ff23..7ef772f 100644
--- a/src/ltm.js
+++ b/src/ltm.js
@@ -179,7 +179,7 @@ const luaT_gettmbyobj = function(L, o, event) {
mt = L.l_G.mt[o.ttnov()];
}
- return mt ? mt.__index(mt, event) : ldo.nil;
+ return mt ? mt.__index(mt, event) : lobject.luaO_nilobject;
};
module.exports.TMS = TMS;
@@ -190,4 +190,4 @@ module.exports.luaT_callorderTM = luaT_callorderTM;
module.exports.luaT_gettmbyobj = luaT_gettmbyobj;
module.exports.luaT_init = luaT_init;
module.exports.luaT_objtypename = luaT_objtypename;
-module.exports.ttypename = ttypename; \ No newline at end of file
+module.exports.ttypename = ttypename;