summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 07:33:40 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-21 08:17:14 +0100
commit2cc93b924a21030fcd6f5dc96f287bbf13f987f4 (patch)
treea831301ac901f51e75e2e9f71d822b8ad49a3212 /src/lauxlib.js
parent5f5ba74ace8a956ae48a9f0b182a157052c2546e (diff)
downloadfengari-2cc93b924a21030fcd6f5dc96f287bbf13f987f4.tar.gz
fengari-2cc93b924a21030fcd6f5dc96f287bbf13f987f4.tar.bz2
fengari-2cc93b924a21030fcd6f5dc96f287bbf13f987f4.zip
string.gmatch
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 3ee04a4..879d081 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -215,8 +215,8 @@ const luaL_buffinitsize = function(L, B, sz) {
return B;
};
-const luaL_addlstring = function(B, s) {
- B.b += s;
+const luaL_addlstring = function(B, s, l) {
+ B.b += s.slice(0, l);
};
const luaL_addstring = luaL_addlstring;