Summary: | Web Inspector: error info propagation in InspectorBackendDispatch should be improved | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ilya Tikhonovsky <loislo> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Yury Semikhatsky <yurys> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Ilya Tikhonovsky
2010-07-23 00:00:20 PDT
Created attachment 62398 [details]
Patch
Comment on attachment 62398 [details]
Patch
WebCore/inspector/CodeGeneratorInspector.pm:245
+ push(@function, " if (args->length() != " . $expectedParametersCount . ") {");
can be simplified a bit.
push(@function, " if (args->length() != $expectedParametersCount) {");
WebCore/inspector/CodeGeneratorInspector.pm:246
+ push(@function, " *exception = String::format(\"Wrong number of parameters: %d (expected: $expectedParametersCount)\", args->length());");
It would be better to also print the parameter name.
Created attachment 62399 [details]
InspectorBackendDispatcher.cpp
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/CodeGeneratorInspector.pm Committed r63962 (In reply to comment #2) > (From update of attachment 62398 [details]) > > WebCore/inspector/CodeGeneratorInspector.pm:245 > + push(@function, " if (args->length() != " . $expectedParametersCount . ") {"); > > can be simplified a bit. > push(@function, " if (args->length() != $expectedParametersCount) {"); > > > WebCore/inspector/CodeGeneratorInspector.pm:246 > + push(@function, " *exception = String::format(\"Wrong number of parameters: %d (expected: $expectedParametersCount)\", args->length());"); > It would be better to also print the parameter name. All comments have been addressed. |