Bug 198790

Summary: '\u' should throw an early SyntaxError exception, but instead evaluates to 'u'
Product: WebKit Reporter: Mathias Bynens <mathias>
Component: JavaScriptCoreAssignee: Alexey Shvayka <ashvayka>
Status: RESOLVED FIXED    
Severity: Trivial CC: ashvayka, darin, dino, ews-watchlist, keith_miller, koivisto, mark.lam, mathias, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=144377
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Mathias Bynens 2019-06-12 08:37:25 PDT
$ eshost -se '"\u"'
#### Chakra
SyntaxError: Expected hexadecimal digit

#### JavaScriptCore
u

#### SpiderMonkey
SyntaxError: malformed Unicode character escape sequence:

#### V8, V8 --harmony
SyntaxError: Invalid Unicode escape sequence

#### xs
SyntaxError: invalid escape sequence
Comment 1 Alexey Shvayka 2020-04-04 03:56:16 PDT
Created attachment 395444 [details]
Patch
Comment 2 Alexey Shvayka 2020-04-04 08:13:41 PDT
Created attachment 395448 [details]
Patch

Adjust old Mozilla test.
Comment 3 Mark Lam 2020-04-04 09:35:25 PDT
Comment on attachment 395448 [details]
Patch

r- for now because a JSC test is still failing.  Please check the other bots as well to make sure their failures are not related.
Comment 4 Alexey Shvayka 2020-04-04 10:56:55 PDT
Created attachment 395458 [details]
Patch

Array/15.4.5.1-1.js failures turned out to be related after all, adjust it.
Comment 5 Yusuke Suzuki 2020-04-04 12:33:04 PDT
Comment on attachment 395458 [details]
Patch

r=me
Comment 6 EWS 2020-04-04 12:36:37 PDT
Committed r259536: <https://trac.webkit.org/changeset/259536>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 395458 [details].
Comment 7 Radar WebKit Bug Importer 2020-04-04 12:37:12 PDT
<rdar://problem/61301054>