Bug 44244 - [INTERPRETER] Two Sputnik tests fail to encode two-byte unicode character (\u2028)
Summary: [INTERPRETER] Two Sputnik tests fail to encode two-byte unicode character (\u...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.6
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-08-19 04:41 PDT by David Kilzer (:ddkilzer)
Modified: 2011-06-10 19:17 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2010-08-19 04:41:41 PDT
Two Sputnik tests fail on the JSC interpreter when encoding a two-byte unicode character (\u2028), but pass on the JSC JIT:

fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A1_T2.html
fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A2_T2.html

--- a/LayoutTests/fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A1_T2-expected.txt
+++ b/LayoutTests/fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A1_T2-expected.txt
@@ -1,6 +1,6 @@
 S15.10.2.12_A1_T2
 
-PASS 
+FAIL SputnikError: #3: var arr = /\s/.exec("\u2028"); arr[0] === "\u2028". Actual. null
 
 TEST COMPLETE
 

--- a/LayoutTests/fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A2_T2-expected.txt
+++ b/LayoutTests/fast/js/sputnik/Conformance/15_Native_Objects/15.10_RegExp/15.10.2/15.10.2.12_CharacterClassEscape/S15.10.2.12_A2_T2-expected.txt
@@ -1,6 +1,6 @@
 S15.10.2.12_A2_T2
 
-PASS 
+FAIL SputnikError: #3: var arr = /\S/.exec("\u2028"); arr[0] === "\u2028". Actual. ‚Ä®
 
 TEST COMPLETE
Comment 1 David Kilzer (:ddkilzer) 2010-08-19 04:48:31 PDT
<rdar://problem/8329002>
Comment 2 Gavin Barraclough 2011-06-10 19:17:33 PDT
From testing on desktop interpreter builds, I'm no longer seeing functional differences to the JIT.  This is likely predominantly due to replacing PCRE with YARR, along with other recent bug fixes.