Bug 174419 - Wrong radix used in Unicode Escape in invalid character error message
Summary: Wrong radix used in Unicode Escape in invalid character error message
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Trivial
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-12 03:30 PDT by Tooru Fujisawa [:arai]
Modified: 2017-07-12 08:57 PDT (History)
7 users (show)

See Also:


Attachments
Patch (12.30 KB, patch)
2017-07-12 04:24 PDT, Tooru Fujisawa [:arai]
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tooru Fujisawa [:arai] 2017-07-12 03:30:10 PDT
Steps to Reproduce:
  1. open WebKit Nightly Build 10.1.1 (12603.2.4, r219378)
  2. open Console
  3. evaluate the following code
    eval("\uffee");

Actual result:
  get following error

  SyntaxError: Invalid character '\u65518'

  it's using decimal after \u

Expected result:
  get the following error

  SyntaxError: Invalid character '\uffee'

  it should use hexadecimal after \u,

I'm preparing a patch now
Comment 1 Tooru Fujisawa [:arai] 2017-07-12 04:24:50 PDT
Created attachment 315228 [details]
Patch
Comment 2 Alex Christensen 2017-07-12 08:28:38 PDT
Comment on attachment 315228 [details]
Patch

Yep.  Thanks!
Comment 3 WebKit Commit Bot 2017-07-12 08:57:18 PDT
Comment on attachment 315228 [details]
Patch

Clearing flags on attachment: 315228

Committed r219396: <http://trac.webkit.org/changeset/219396>
Comment 4 WebKit Commit Bot 2017-07-12 08:57:19 PDT
All reviewed patches have been landed.  Closing bug.