[Webkit-unassigned] [Bug 156617] New: Web Inspector: JS Pretty Printing - Some comments get lost

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 14 19:29:03 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=156617

            Bug ID: 156617
           Summary: Web Inspector: JS Pretty Printing - Some comments get
                    lost
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: bburg at apple.com, graouts at webkit.org,
                    joepeck at webkit.org, mattbaker at apple.com,
                    nvasilyev at apple.com, timothy at apple.com,
                    webkit-bug-importer at group.apple.com

* SUMMARY
JS Pretty Printing - Some comments get lost.

* TEST
{
  1;
  // Test
}

* RESULTS
{
    1;

}

* EXPECTED
{
    1;
    // Test
}

* DEBUG
BlockStatement            Punctuator           {
Literal                   Numeric              1
ExpressionStatement       Punctuator           ;
** T Comment (1)          Line                  Test
BlockStatement            Punctuator           }

* NOTES
This is apparently a bad arrangement of Punctuators and Comments which ends up having this comment only as a "Trailing" comment for the Expression and not a "Leading" comment for the block... Not sure where it would be best to handle this comment.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160415/0a51d880/attachment.html>


More information about the webkit-unassigned mailing list