Fixed dot properties not optimizing unicode identifiers. Signed-off-by: Justin Lau <justin@tclau.com>
This commit is contained in:
@@ -167,6 +167,14 @@ function is_identifier_char(ch) {
|
||||
;
|
||||
};
|
||||
|
||||
function is_identifier_string(str){
|
||||
for (var i = str.length; --i >= 0;) {
|
||||
if (!is_identifier_char(str.charAt(i)))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
function parse_js_number(num) {
|
||||
if (RE_HEX_NUMBER.test(num)) {
|
||||
return parseInt(num.substr(2), 16);
|
||||
|
||||
Reference in New Issue
Block a user