Bug 146238 - Misleading error message: "At least one digit must occur after a decimal point"
Summary: Misleading error message: "At least one digit must occur after a decimal point"
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Basile Clement
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-23 08:37 PDT by Claude Pache
Modified: 2015-07-28 13:22 PDT (History)
2 users (show)

See Also:


Attachments
Patch (4.56 KB, patch)
2015-07-28 12:47 PDT, Basile Clement
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Claude Pache 2015-06-23 08:37:46 PDT
Type in the console:

  12.34a

You get rightfully an SyntaxError, but the message is incorrect:

  SyntaxError: At least one digit must occur after a decimal point
Comment 1 Basile Clement 2015-07-28 12:47:00 PDT
Created attachment 257671 [details]
Patch
Comment 2 Geoffrey Garen 2015-07-28 13:18:49 PDT
Comment on attachment 257671 [details]
Patch

r=me
Comment 3 Basile Clement 2015-07-28 13:22:05 PDT
Committed r187506: <http://trac.webkit.org/changeset/187506>