From 8ffdadc19c526ae36490e626e226c6123ae2b3ff Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Thu, 2 Mar 2017 11:13:33 +0100 Subject: [Parsing tests] SETTABLE, GETTABLE --- src/llex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/llex.js b/src/llex.js index 63a1fbb..f90dc47 100644 --- a/src/llex.js +++ b/src/llex.js @@ -498,7 +498,7 @@ const llex = function(ls, seminfo) { } case '[': { /* long string or simply '[' */ let sep = skip_sep(ls); - if (sep.charCodeAt(0) >= 0) { + if (sep >= 0) { read_long_string(ls, seminfo, sep); return R.TK_STRING; } else if (sep !== -1) /* '[=...' missing second bracket */ -- cgit v1.2.3-70-g09d2