summaryrefslogtreecommitdiff
path: root/src/lbaselib.js
diff options
context:
space:
mode:
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 f5af541..4212525 100644
--- a/src/lbaselib.js
+++ b/src/lbaselib.js
@@ -331,7 +331,7 @@ const luaB_assert = function(L) {
const luaB_select = function(L) {
let n = lua_gettop(L);
- if (lua_type(L, 1) === LUA_TSTRING && lua_tostring(L, 1)[0] === "#".charCodeAt(0)) {
+ if (lua_type(L, 1) === LUA_TSTRING && lua_tostring(L, 1)[0] === 35 /* '#'.charCodeAt(0) */) {
lua_pushinteger(L, n - 1);
return 1;
} else {