diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2013-10-04 00:13:52 -0700 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2013-10-04 00:13:52 -0700 |
commit | 253c7c23258e9c783459f683a385bb518f18403a (patch) | |
tree | 588c27de99a52671f0e1cac35355eddd302c8275 | |
parent | 8cc86fee6016bc2d540a348f5eb4a174f006a02b (diff) | |
parent | bb0a762d12d2ecd058b9d7b57f16b4c289378d9c (diff) | |
download | tracifyjs-253c7c23258e9c783459f683a385bb518f18403a.tar.gz tracifyjs-253c7c23258e9c783459f683a385bb518f18403a.zip |
Merge pull request #308 from meteor/fix-unicode-keys
Only allow identifier start characters at the beginning of identifiers.
-rw-r--r-- | lib/parse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js index a423aa0a..6d69461c 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -170,7 +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; + if (!is_identifier_start(str.charCodeAt(0))) return false; while (--i >= 0) { if (!is_identifier_char(str.charAt(i))) return false; |