summaryrefslogtreecommitdiff
path: root/src/luaconf.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/luaconf.js')
-rw-r--r--src/luaconf.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luaconf.js b/src/luaconf.js
index c2a7781..533e316 100644
--- a/src/luaconf.js
+++ b/src/luaconf.js
@@ -38,7 +38,7 @@ const LUA_INTEGER_FMT = `%${LUA_INTEGER_FRMLEN}d`;
const LUA_NUMBER_FMT = "%.14g";
const lua_getlocaledecpoint = function() {
- return (1.1).toLocaleString().substring(1, 2);
+ return (1.1).toLocaleString().charCodeAt(1);
};
const luai_apicheck = function(l, e) {