summaryrefslogtreecommitdiff
path: root/src/lutf8lib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lutf8lib.js')
-rw-r--r--src/lutf8lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lutf8lib.js b/src/lutf8lib.js
index 1a401c4..de97bec 100644
--- a/src/lutf8lib.js
+++ b/src/lutf8lib.js
@@ -21,7 +21,7 @@ const u_posrelat = function(pos, len) {
/*
** Decode one UTF-8 sequence, returning NULL if byte sequence is invalid.
*/
-const utf8_decode = function(s, val) {
+const utf8_decode = function(s) {
let limits = [0xFF, 0x7F, 0x7FF, 0xFFFF];
let c = s[0];
let res = 0; /* final result */