From 8d79a77d17d82b6f1e910ba0d2da7a8433771a30 Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 16 Mar 2011 15:17:38 -0700 Subject: [PATCH] Bug 639420 - Speed up the scanner ten ways, part 5. r=brendan. --- js/src/jsscan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsscan.cpp b/js/src/jsscan.cpp index 5a88a4cd3e83..1029fc44321a 100644 --- a/js/src/jsscan.cpp +++ b/js/src/jsscan.cpp @@ -1121,7 +1121,7 @@ TokenStream::getTokenInternal() c = getCharIgnoreEOL(); } while (JS7_ISDEC(c)); } - if (JS_TOLOWER(c) == 'e') { + if (c == 'e' || c == 'E') { hasFracOrExp = true; c = getCharIgnoreEOL(); if (c == '+' || c == '-') @@ -1169,7 +1169,7 @@ TokenStream::getTokenInternal() if (c == '0') { int radix; c = getCharIgnoreEOL(); - if (JS_TOLOWER(c) == 'x') { + if (c == 'x' || c == 'X') { radix = 16; c = getCharIgnoreEOL(); if (!JS7_ISHEX(c)) {