summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-02 11:13:33 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-02 11:13:33 +0100
commit8ffdadc19c526ae36490e626e226c6123ae2b3ff (patch)
tree00c8963bf8ab44f555f87bafa7a835f692083781 /src
parent490ee0d109671b6f7e9d3d56e8122f41647fed4c (diff)
downloadfengari-8ffdadc19c526ae36490e626e226c6123ae2b3ff.tar.gz
fengari-8ffdadc19c526ae36490e626e226c6123ae2b3ff.tar.bz2
fengari-8ffdadc19c526ae36490e626e226c6123ae2b3ff.zip
[Parsing tests] SETTABLE, GETTABLE
Diffstat (limited to 'src')
-rw-r--r--src/llex.js2
1 files changed, 1 insertions, 1 deletions
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 */