Bug 178521

Summary: Test262: RegExp/property-escapes/generated/Emoji_Component.js fails with current RegExp Unicode Properties implementation
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, jfbastien, keith_miller, mark.lam, saam
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Michael Saboff
Reported 2017-10-19 10:23:30 PDT
The test262 test JSTests/test262/test/built-ins/RegExp/property-escapes/generated/Emoji_Component.js fails with the current implementation of RegExp Unicode Properties. The failure is: Exception: Test262Error: `\P{Emoji_Component}` should match U+00200D (`‍`) I had some discussion with Mathias Bynens, who wrote both the Unicode Properties spec change proposal and this test, about a week ago. He stated that this area of the Unicode Properties spec is still being revised. We should fix our implementation if needed when the spec and / or tests are finalized.
Attachments
Patch (26.16 KB, patch)
2017-10-19 15:30 PDT, Michael Saboff
no flags
Michael Saboff
Comment 1 2017-10-19 10:24:20 PDT
Michael Saboff
Comment 2 2017-10-19 14:25:53 PDT
The issue is that the test262 test is expecting results based on Emoji 5.0 and JSC is built with the Emoji 6.0 data file.
Michael Saboff
Comment 3 2017-10-19 15:30:15 PDT
JF Bastien
Comment 4 2017-10-19 15:33:58 PDT
Comment on attachment 324301 [details] Patch I'm not sure I get this: deleting entries made more tests pass? I assume you're right, so r=me.
JF Bastien
Comment 5 2017-10-19 15:34:52 PDT
Oh actually, test262 is wrong: TC39 now floats the Unicode version to "the latest Unicode version", so we can be at 6.0 and we're correct. So this is a bad test.
Michael Saboff
Comment 6 2017-10-19 15:39:34 PDT
(In reply to JF Bastien from comment #5) > Oh actually, test262 is wrong: TC39 now floats the Unicode version to "the > latest Unicode version", so we can be at 6.0 and we're correct. So this is a > bad test. The issue is that 6.0 is an unratified draft at this point.
WebKit Commit Bot
Comment 7 2017-10-19 16:26:10 PDT
Comment on attachment 324301 [details] Patch Clearing flags on attachment: 324301 Committed r223724: <https://trac.webkit.org/changeset/223724>
WebKit Commit Bot
Comment 8 2017-10-19 16:26:11 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.