Bug 146238

Summary: Misleading error message: "At least one digit must occur after a decimal point"
Product: WebKit Reporter: Claude Pache <claude.pache>
Component: JavaScriptCoreAssignee: Basile Clement <basile_clement>
Status: RESOLVED FIXED    
Severity: Normal CC: basile_clement, ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ggaren: review+

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>