summaryrefslogtreecommitdiff
path: root/src/lbaselib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-02-28 21:15:16 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-01 09:32:28 +0100
commit74dda64eab7951da520dc451a1f3bbb8c7d62706 (patch)
tree26930f74654a0be55cc418c64fa2ba2713e875c6 /src/lbaselib.js
parentdfac155a3f8b650222fa784303e599f4e50abe67 (diff)
downloadfengari-74dda64eab7951da520dc451a1f3bbb8c7d62706.tar.gz
fengari-74dda64eab7951da520dc451a1f3bbb8c7d62706.tar.bz2
fengari-74dda64eab7951da520dc451a1f3bbb8c7d62706.zip
Bytecode generation
Diffstat (limited to 'src/lbaselib.js')
-rw-r--r--src/lbaselib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lbaselib.js b/src/lbaselib.js
index b663b87..77638d0 100644
--- a/src/lbaselib.js
+++ b/src/lbaselib.js
@@ -90,7 +90,7 @@ const luaB_rawset = function(L) {
const luaB_type = function(L) {
let t = lapi.lua_type(L, 1);
- lauxlib.luaL_argcheck(L, t != CT.LUA_TNONE, 1, "value expected");
+ lauxlib.luaL_argcheck(L, t !== CT.LUA_TNONE, 1, "value expected");
lapi.lua_pushstring(L, lapi.lua_typename(L, t));
return 1;
};