diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-03 19:06:36 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-03 19:06:36 +1000 |
commit | 4cf090d7ede6aa3153ad912c580cfb07b1e60a9d (patch) | |
tree | dedecdebe2577103764331fe0367cfd1bfbb95df /src/lutf8lib.js | |
parent | 4531d2c6485f1bda6243949adadbdec04fd2e22d (diff) | |
download | fengari-4cf090d7ede6aa3153ad912c580cfb07b1e60a9d.tar.gz fengari-4cf090d7ede6aa3153ad912c580cfb07b1e60a9d.tar.bz2 fengari-4cf090d7ede6aa3153ad912c580cfb07b1e60a9d.zip |
luaL_Buffer constructor shouldn't take a lua state
It gets set in luaL_buffinit
Diffstat (limited to 'src/lutf8lib.js')
-rw-r--r-- | src/lutf8lib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lutf8lib.js b/src/lutf8lib.js index e78b8e8..9e0302f 100644 --- a/src/lutf8lib.js +++ b/src/lutf8lib.js @@ -96,7 +96,7 @@ const utfchar = function(L) { if (n === 1) /* optimize common case of single char */ pushutfchar(L, 1); else { - let b = new lauxlib.luaL_Buffer(L); + let b = new lauxlib.luaL_Buffer(); lauxlib.luaL_buffinit(L, b); for (let i = 1; i <= n; i++) { pushutfchar(L, i); |