Bug 102341 - Web Inspector: Fix new JS compiler warnings.
Summary: Web Inspector: Fix new JS compiler warnings.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: eustas.bug
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 23:19 PST by eustas.bug
Modified: 2012-11-15 02:25 PST (History)
11 users (show)

See Also:


Attachments
Patch (3.68 KB, patch)
2012-11-14 23:22 PST, eustas.bug
no flags Details | Formatted Diff | Diff
Patch (3.57 KB, patch)
2012-11-15 00:17 PST, eustas.bug
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eustas.bug 2012-11-14 23:19:21 PST
New version of compiler finds new inconsistencies.
1) DOMAgent.js:1285: actual parameter 1 of Object.defineProperty does not match formal parameter
2) ElementsPanel.js:81: Property domBreakpointsSidebarPane never defined on WebInspector
3) Script.js:152: actual parameter 4 of DebuggerAgent.setScriptSource does not match formal parameter
Comment 1 eustas.bug 2012-11-14 23:22:46 PST
Created attachment 174359 [details]
Patch
Comment 2 Pavel Feldman 2012-11-14 23:31:16 PST
Comment on attachment 174359 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=174359&action=review

> Source/WebCore/inspector/front-end/DOMAgent.js:1284
> +            for (var i = 0; i < touchEvents.length; ++i)

{ } around the block
Comment 3 eustas.bug 2012-11-15 00:11:15 PST
Comment on attachment 174359 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=174359&action=review

>> Source/WebCore/inspector/front-end/DOMAgent.js:1284
>> +            for (var i = 0; i < touchEvents.length; ++i)
> 
> { } around the block

Fixed.
Comment 4 eustas.bug 2012-11-15 00:17:09 PST
Created attachment 174364 [details]
Patch
Comment 5 WebKit Review Bot 2012-11-15 00:55:35 PST
Comment on attachment 174364 [details]
Patch

Clearing flags on attachment: 174364

Committed r134751: <http://trac.webkit.org/changeset/134751>
Comment 6 WebKit Review Bot 2012-11-15 00:55:39 PST
All reviewed patches have been landed.  Closing bug.
Comment 7 Andrey Adaikin 2012-11-15 02:25:12 PST
Comment on attachment 174364 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=174364&action=review

> Source/WebCore/inspector/front-end/DOMAgent.js:1285
> +                for (var j = 0; j < recepients.length; ++j) {

IMO, now you have more lines of code, and less readable code.

BTW, I think JS compiler does not complain because it treats the "recepients" as "@type {?}", now? otherwise I don't see why the new version is more typed then the old one.

And one more thing. "recepients" -> "recipients"