diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 16:40:29 +0100 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-03-24 16:40:29 +0100 |
commit | 7af8347dbb7a8c3a09d2aebccd5f96384a7c55c3 (patch) | |
tree | 174de728b42de05b68f8ad10d1b0efddf6c188e0 /src/ltm.js | |
parent | 12944ea4d52a330b8b015af296dbbdee3fb4abbd (diff) | |
download | fengari-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.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |