WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
88954
Constant booleans in IDL files should not be cast to jsNumber
https://bugs.webkit.org/show_bug.cgi?id=88954
Summary
Constant booleans in IDL files should not be cast to jsNumber
justinlin
Reported
2012-06-12 21:36:37 PDT
The JS CodeGenerator casts const booleans specified in IDL files to jsNumber. It should not do that.
Attachments
Patch
(1.60 KB, patch)
2012-06-15 23:48 PDT
,
justinlin
no flags
Details
Formatted Diff
Diff
Patch
(1.62 KB, patch)
2012-06-15 23:53 PDT
,
justinlin
darin
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
justinlin
Comment 1
2012-06-15 23:48:01 PDT
Created
attachment 147954
[details]
Patch
WebKit Review Bot
Comment 2
2012-06-15 23:50:31 PDT
Attachment 147954
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/ChangeLog:4: Line contains tab character. [whitespace/tab] [5] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
justinlin
Comment 3
2012-06-15 23:53:57 PDT
Created
attachment 147956
[details]
Patch
Darin Adler
Comment 4
2012-06-15 23:55:04 PDT
Comment on
attachment 147956
[details]
Patch Looks fine, but needs test coverage in run-bindings-tests.
Darin Adler
Comment 5
2012-06-15 23:55:27 PDT
Comment on
attachment 147956
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=147956&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:2232 > + push(@implContent, " return jsBoolean(" . $constant->value . ");\n");
Needs UNUSED_PARAM for the same reason the jsNumber branch does.
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