summaryrefslogtreecommitdiff
path: root/src/luaconf.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-15 14:50:14 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-15 14:53:03 +1100
commitb162ffe744bc407ad4035674f5c05848a460b58f (patch)
tree5d00c92294b3f562154104b269a5d6ca4d395c1e /src/luaconf.js
parent55ff446d1fdd5ad5982e2ce3f7118fca8c16880b (diff)
downloadfengari-b162ffe744bc407ad4035674f5c05848a460b58f.tar.gz
fengari-b162ffe744bc407ad4035674f5c05848a460b58f.tar.bz2
fengari-b162ffe744bc407ad4035674f5c05848a460b58f.zip
src/lobject.js: Refactor luaO_chunkid to use Uint8Array.set
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 00663a6..5331720 100644
--- a/src/luaconf.js
+++ b/src/luaconf.js
@@ -19,7 +19,7 @@ const LUAI_MAXSTACK = 100000;
@@ of a function in debug information.
** CHANGE it if you want a different size.
*/
-const LUA_IDSIZE = 60;
+const LUA_IDSIZE = 60-1; /* fengari uses 1 less than lua as we don't embed the null byte */
const lua_integer2str = function(n) {
return sprintf(LUA_INTEGER_FMT, n);