From 32fee0764e9e5e1a903ef5d16fb94718a86d7a09 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 29 Jan 2018 14:46:36 +1100 Subject: src/{luaconf,lobject,lstrlib}.js: lua_getlocaledecpoint now returns char code instead of string --- src/luaconf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/luaconf.js') 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) { -- cgit v1.2.3-54-g00ecf