New issue
Advanced search Search tips

Issue 717562 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

DevTools: Coverage reports non-executed lines as executed

Project Member Reported by paulir...@chromium.org, May 2 2017

Issue description

Repro:

1. Open  https://caltrainschedule.io/ in incognito tab
2. open coverage and start recording
3. reload the page. stop recording.
4. open default.js and jump to line ~356
    document.body.classList.remove('firstrun');
5. Observe that this line and the following lines are green. However this code is not executed.

...

6. Place breakpoints on 356 and the lines following.
7. Record coverage and reload again
8. Observe that no breakpoints are hit, however coverage continues to report these lines as executed.



 
Screen Shot 2017-05-02 at 8.47.09 AM.png
144 KB View Download

Comment 1 by caseq@chromium.org, May 15 2017

Status: ExternalDependency (was: Assigned)
This is basically https://bugs.chromium.org/p/v8/issues/detail?id=6000 -- the coverage we currently have is funciton-level, not block-level, so if something in function is executed, the entire function is marked as used.

Comment 2 by caseq@chromium.org, Oct 3 2017

Fixed by exposing support for block-level coverage along with  issue 751085 :
https://chromium.googlesource.com/chromium/src.git/+/3851c772ecbfe9decbc099161a26d9eb88694a65

Comment 3 by caseq@chromium.org, Oct 3 2017

Status: Fixed (was: ExternalDependency)

Sign in to add a comment