WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
133998
Fix error messages for incorrect hex literals
https://bugs.webkit.org/show_bug.cgi?id=133998
Summary
Fix error messages for incorrect hex literals
Oliver Hunt
Reported
2014-06-17 13:50:03 PDT
Fix error messages for incorrect hex literals
Attachments
Patch
(7.79 KB, patch)
2014-06-17 13:51 PDT
,
Oliver Hunt
dbates
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2014-06-17 13:51:43 PDT
Created
attachment 233259
[details]
Patch
Mark Lam
Comment 2
2014-06-17 14:14:33 PDT
Comment on
attachment 233259
[details]
Patch r=me
Daniel Bates
Comment 3
2014-06-17 14:21:08 PDT
Comment on
attachment 233259
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233259&action=review
> Source/JavaScriptCore/parser/Lexer.cpp:1657 > + m_lexErrorMessage = "No space between hexadecimal literal and identifier";
Can we add a test for this new error message?
Daniel Bates
Comment 4
2014-06-17 14:24:53 PDT
Comment on
attachment 233259
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233259&action=review
> Source/JavaScriptCore/parser/ParserTokens.h:153 > + INVALID_HEX_NUMBER_ERRORTOK = 11 | ErrorTokenFlag
For your consideration, I suggest that we add a trailing comma (,) to the end of this line so that we can avoid touching the last line of this enum (which creates noise when using svn/git blame) when adding a new enum value.
Oliver Hunt
Comment 5
2014-06-17 15:30:26 PDT
Committed
r170079
: <
http://trac.webkit.org/changeset/170079
>
Daniel Bates
Comment 6
2014-06-17 16:31:04 PDT
(In reply to
comment #5
)
> Committed
r170079
: <
http://trac.webkit.org/changeset/170079
>
For completeness, this changeset includes an additional test case called, LayoutTests/js/parser-error-messages.html, that tests for the syntax error "No space between hexadecimal literal and identifier" and hence addresses
comment #3
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug