diff options
author | daurnimator <quae@daurnimator.com> | 2018-02-04 19:27:56 -0800 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-02-04 19:37:12 -0800 |
commit | 662e326db5e44859bb92242d6dc27e386fb621ec (patch) | |
tree | 6902da0dba2b3fe8522d1ff3228007474a2c1106 /src/lauxlib.js | |
parent | 6cbf92d30fe7eb24fa5e2a93bfe432c081a7e51f (diff) | |
download | fengari-662e326db5e44859bb92242d6dc27e386fb621ec.tar.gz fengari-662e326db5e44859bb92242d6dc27e386fb621ec.tar.bz2 fengari-662e326db5e44859bb92242d6dc27e386fb621ec.zip |
src/{luaconf,lauxlib}.js: LUAL_BUFFERSIZE should be defined in luaconf
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index 15d8dab..3dfc072 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -1,6 +1,9 @@ "use strict"; const { + LUAL_BUFFERSIZE +} = require('./luaconf.js'); +const { LUA_ERRERR, LUA_MULTRET, LUA_REGISTRYINDEX, @@ -471,8 +474,6 @@ const luaL_buffinitsize = function(L, B, sz) { return luaL_prepbuffsize(B, sz); }; -const LUAL_BUFFERSIZE = 8192; - const luaL_prepbuffer = function(B) { return luaL_prepbuffsize(B, LUAL_BUFFERSIZE); }; |