From 4cf090d7ede6aa3153ad912c580cfb07b1e60a9d Mon Sep 17 00:00:00 2001 From: daurnimator Date: Wed, 3 May 2017 19:06:36 +1000 Subject: luaL_Buffer constructor shouldn't take a lua state It gets set in luaL_buffinit --- src/lauxlib.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lauxlib.js') diff --git a/src/lauxlib.js b/src/lauxlib.js index 0491de5..b020d04 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -10,8 +10,8 @@ const LUA_FILEHANDLE = lua.to_luastring("FILE*", true); class luaL_Buffer { - constructor(L) { - this.L = L; + constructor() { + this.L = null; this.b = ""; } } -- cgit v1.2.3-54-g00ecf