WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52837
[v8] CodeGeneratorV8 generates incorrect code for callbacks with no parameters
https://bugs.webkit.org/show_bug.cgi?id=52837
Summary
[v8] CodeGeneratorV8 generates incorrect code for callbacks with no parameters
James Robinson
Reported
2011-01-20 13:08:35 PST
[v8] CodeGeneratorV8 generates incorrect code for callbacks with no parameters
Attachments
Patch
(18.09 KB, patch)
2011-01-20 13:22 PST
,
James Robinson
japhet
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
James Robinson
Comment 1
2011-01-20 13:22:53 PST
Created
attachment 79643
[details]
Patch
Nate Chapin
Comment 2
2011-01-20 13:31:07 PST
Comment on
attachment 79643
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79643&action=review
> Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2406 > + } else { > + push(@implContent, "\n v8::Handle<v8::Value> *argv = 0;\n\n"); > + }
Nit: no {} for the else statement
James Robinson
Comment 3
2011-01-20 13:38:25 PST
(In reply to
comment #2
)
> (From update of
attachment 79643
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=79643&action=review
> > > Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2406 > > + } else { > > + push(@implContent, "\n v8::Handle<v8::Value> *argv = 0;\n\n"); > > + } > > Nit: no {} for the else statement
The other one-line conditionals in this file seem to use {}s
Nate Chapin
Comment 4
2011-01-20 13:39:36 PST
(In reply to
comment #3
)
> (In reply to
comment #2
) > > (From update of
attachment 79643
[details]
[details]) > > View in context:
https://bugs.webkit.org/attachment.cgi?id=79643&action=review
> > > > > Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2406 > > > + } else { > > > + push(@implContent, "\n v8::Handle<v8::Value> *argv = 0;\n\n"); > > > + } > > > > Nit: no {} for the else statement > > The other one-line conditionals in this file seem to use {}s
Hmm....I had forgotten that. nvm then.
James Robinson
Comment 5
2011-01-20 13:40:09 PST
Committed
r76277
: <
http://trac.webkit.org/changeset/76277
>
Adam Barth
Comment 6
2011-01-20 15:05:21 PST
Comment on
attachment 79643
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79643&action=review
>>>> Source/WebCore/bindings/scripts/CodeGeneratorV8.pm:2406 >>>> + } else { >>>> + push(@implContent, "\n v8::Handle<v8::Value> *argv = 0;\n\n"); >>>> + } >>> >>> Nit: no {} for the else statement >> >> The other one-line conditionals in this file seem to use {}s > > Hmm....I had forgotten that. nvm then.
I think they're required in Perl.
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