aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-15 01:45:24 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-15 01:45:24 +1000
commit602dc35900af6f02d152138cc4641d803c29996d (patch)
tree47e284fc2f452dd265fc29ff8739a7623a43f6d7 /src
parent5cf30659bcad3f40b0b875bb61586eb30106b14c (diff)
downloadfengari-602dc35900af6f02d152138cc4641d803c29996d.tar.gz
fengari-602dc35900af6f02d152138cc4641d803c29996d.tar.bz2
fengari-602dc35900af6f02d152138cc4641d803c29996d.zip
src/lstrlib.js: pass ESC charcode (not as string)
Diffstat (limited to 'src')
-rw-r--r--src/lstrlib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lstrlib.js b/src/lstrlib.js
index ba1ef55..6ea1630 100644
--- a/src/lstrlib.js
+++ b/src/lstrlib.js
@@ -1287,7 +1287,7 @@ const add_s = function(ms, b, s, e) {
i++; /* skip ESC */
if (!isdigit(news[i])) {
if (news[i] !== L_ESC)
- lauxlib.luaL_error(L, lua.to_luastring("invalid use of '%c' in replacement string"), sL_ESC);
+ lauxlib.luaL_error(L, lua.to_luastring("invalid use of '%c' in replacement string"), L_ESC);
lauxlib.luaL_addchar(b, news[i]);
} else if (news[i] === '0'.charCodeAt(0))
lauxlib.luaL_addlstring(b, ms.src.slice(s), e - s);