aboutsummaryrefslogtreecommitdiff
path: root/src/lapi.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lapi.js')
-rw-r--r--src/lapi.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.js b/src/lapi.js
index 4c2641d..7c9317e 100644
--- a/src/lapi.js
+++ b/src/lapi.js
@@ -354,7 +354,7 @@ const lua_pushcfunction = function(L, fn) {
const lua_pushjsfunction = lua_pushcfunction;
const lua_pushboolean = function(L, b) {
- L.stack[L.top] = new TValue(LUA_TBOOLEAN, b ? true : false);
+ L.stack[L.top] = new TValue(LUA_TBOOLEAN, !!b);
api_incr_top(L);
};