aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-05-14 10:41:28 +0300
committerMihai Bazon <mihai@bazon.net>2013-05-14 10:42:34 +0300
commitd56ebd7d7b8de0b46ce203b580df28d76fa16692 (patch)
tree403409d74658fbaf0ea6fdef24f10d0dfc94bf8d /lib/parse.js
parent3edfe7d0ee644a5ea0383fe02152b4f7f578cfcb (diff)
downloadtracifyjs-d56ebd7d7b8de0b46ce203b580df28d76fa16692.tar.gz
tracifyjs-d56ebd7d7b8de0b46ce203b580df28d76fa16692.zip
Fix a["1_1"]
Close #204
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/parse.js b/lib/parse.js
index c8c5d0a0..a687495b 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -170,6 +170,7 @@ function is_identifier_char(ch) {
function is_identifier_string(str){
var i = str.length;
if (i == 0) return false;
+ if (is_digit(str.charCodeAt(0))) return false;
while (--i >= 0) {
if (!is_identifier_char(str.charAt(i)))
return false;