Web Inspector: fix SourceFrame.js compilation warning
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2013 14:59:52 +0000 (14:59 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Mar 2013 14:59:52 +0000 (14:59 +0000)
commit295ef0ae89d15838be51ab5e66eb1581c1a784c0
tree087f856ecfbdaa595f3e3db4a17c828ea4ca0afd
parente1dee7588db1a789c2ef5bc840bdd8f719b7f19e
Web Inspector: fix SourceFrame.js compilation warning
https://bugs.webkit.org/show_bug.cgi?id=112804

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-20
Reviewed by Yury Semikhatsky.

No new tests: no change in behavior.

- Explicitly parse lineNumber from object property name.
- Add type annotations to ensure addMessageToSource is monomorphic.

* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame.prototype.clearMessages):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@146345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/SourceFrame.js