Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: test/cctest/test-regexp.cc

Issue 147443008: Revert "Fix inconsistencies wrt whitespaces." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.cc ('k') | test/mjsunit/third_party/string-trim.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-regexp.cc
diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
index 78cc88e82dca4761203d0e2a78abc1f76a317a17..d0193520fae9a5e225ff7d1379b4fcf61653df08 100644
--- a/test/cctest/test-regexp.cc
+++ b/test/cctest/test-regexp.cc
@@ -445,7 +445,21 @@ static bool NotDigit(uc16 c) {
static bool IsWhiteSpace(uc16 c) {
- return v8::internal::WhiteSpace::Is(c);
+ switch (c) {
+ case 0x09:
+ case 0x0A:
+ case 0x0B:
+ case 0x0C:
+ case 0x0d:
+ case 0x20:
+ case 0xA0:
+ case 0x2028:
+ case 0x2029:
+ case 0xFEFF:
+ return true;
+ default:
+ return unibrow::Space::Is(c);
+ }
}
« no previous file with comments | « src/x64/regexp-macro-assembler-x64.cc ('k') | test/mjsunit/third_party/string-trim.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698