Bug 187759

Summary: Inconsistent output compared with other JS engines
Product: WebKit Reporter: sunlili
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: fpizlo, ysuzuki
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
js source code none

Description sunlili 2018-07-18 07:39:39 PDT
Created attachment 345244 [details]
js source code

Hello,
    Running js code in attachment, output in ChakraCore, V8 and SpiderMonkey is:

["",""]
r.lastIndex=0
RegExp.${_,1,...,9}=["a","","","","","","","","",""]
BT_FLAG

    But, JavaScriptCore is:

["",""]
r.lastIndex=0
RegExp.${_,1,...,9}=["","","","","","","","","",""]
BT_FLAG


BT group
2018.7.18