[v8] CodeGeneratorV8 generates incorrect code for callbacks with no parameters
Created attachment 79643 [details] Patch
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
(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
(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.
Committed r76277: <http://trac.webkit.org/changeset/76277>
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.