Bug 187759 - Inconsistent output compared with other JS engines
Summary: Inconsistent output compared with other JS engines
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-18 07:39 PDT by sunlili
Modified: 2018-07-20 19:46 PDT (History)
2 users (show)

See Also:


Attachments
js source code (4.84 KB, application/javascript)
2018-07-18 07:39 PDT, sunlili
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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