aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
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;