From d56ebd7d7b8de0b46ce203b580df28d76fa16692 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 14 May 2013 10:41:28 +0300 Subject: Fix a["1_1"] Close #204 --- lib/parse.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/parse.js') 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; -- cgit v1.2.3