Fix a["1_1"]

Close #204
This commit is contained in:
Mihai Bazon
2013-05-14 10:41:28 +03:00
parent 3edfe7d0ee
commit d56ebd7d7b
3 changed files with 5 additions and 2 deletions

View File

@@ -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;