From cd6a982b528aed8757d8db3e7dec91994accfced Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Fri, 7 Oct 2011 14:33:46 +0000 Subject: [PATCH] Fix string whitespace trimming of byte order marks. R=rossberg@chromium.org TEST=test262 Review URL: http://codereview.chromium.org/8195006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9550 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 2 +- test/test262/test262.status | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/runtime.cc b/src/runtime.cc index 995b1cccf..f47e54aba 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -6114,7 +6114,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringToUpperCase) { static inline bool IsTrimWhiteSpace(unibrow::uchar c) { - return unibrow::WhiteSpace::Is(c) || c == 0x200b; + return unibrow::WhiteSpace::Is(c) || c == 0x200b || c == 0xfeff; } diff --git a/test/test262/test262.status b/test/test262/test262.status index a7b59696f..3f5fd5ad0 100644 --- a/test/test262/test262.status +++ b/test/test262/test262.status @@ -1278,28 +1278,6 @@ S15.4.4.3_A2_T1: FAIL_OK # Bug? Array.prototype.reduceRight - modifications to length will change number # of iterations 15.4.4.22-9-9: FAIL -# Bug? String.prototype.trim - 'S' is a string with all WhiteSpace -15.5.4.20-3-2: FAIL -# Bug? String.prototype.trim - 'S' is a string with all union of WhiteSpace and -# LineTerminator -15.5.4.20-3-3: FAIL -# Bug? String.prototype.trim - 'S' is a string start with union of all -# LineTerminator and all WhiteSpace -15.5.4.20-3-4: FAIL -# Bug? String.prototype.trim - 'S' is a string end with union of all -# LineTerminator and all WhiteSpace -15.5.4.20-3-5: FAIL -# Bug? String.prototype.trim - 'S' is a string start with union of all -# LineTerminator and all WhiteSpace and end with union of all -# LineTerminator and all WhiteSpace -15.5.4.20-3-6: FAIL -# Bug? String.prototype.trim handles whitepace and lineterminators (\\uFEFFabc) -15.5.4.20-4-10: FAIL -# Bug? String.prototype.trim handles whitepace and lineterminators (abc\\uFEFF) -15.5.4.20-4-18: FAIL -# Bug? String.prototype.trim handles whitepace and lineterminators -# (\\uFEFF\\uFEFF) -15.5.4.20-4-34: FAIL # Bug? Date.prototype.toISOString - RangeError is thrown when value of date is # Date(1970, 0, -99999999, 0, 0, 0, -1), the time zone is UTC(0) 15.9.5.43-0-8: FAIL -- 2.34.1