From 662e326db5e44859bb92242d6dc27e386fb621ec Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 4 Feb 2018 19:27:56 -0800 Subject: src/{luaconf,lauxlib}.js: LUAL_BUFFERSIZE should be defined in luaconf --- src/lauxlib.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lauxlib.js') diff --git a/src/lauxlib.js b/src/lauxlib.js index 15d8dab..3dfc072 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -1,5 +1,8 @@ "use strict"; +const { + LUAL_BUFFERSIZE +} = require('./luaconf.js'); const { LUA_ERRERR, LUA_MULTRET, @@ -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); }; -- cgit v1.2.3-54-g00ecf