New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 797296 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 21
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Bug



Sign in to add a comment

While debugging a function with spread syntax for rest parameters (ECMAScript 2015), an error is displayed in the tooltip instead of the parameter content

Reported by philippe...@gmail.com, Dec 22 2017

Issue description

Chrome Version       : 63.0.3239.84
OS Version: 10.0
Other browsers tested: None

What steps will reproduce the problem?
1. Page with javascript method using spread syntax for rest parameter (ECMAScript 2015)
2. Insert a breakpoint via the developer tools in the function.
3. Hover the rest parameter in the function header or the destructuring spread syntax of the parameter in the function body.

What is the expected result?
The tooltip should display the same information as the one visible next to the funtion header (and also in the Scope pane)

What happens instead of that?
The tooltip displays "Unexpected token ..."

Please provide any additional information below. Attach a screenshot if
possible.
Note: Rest parameter is newly supported by Chrome in version 47/49 according to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters

UserAgentString: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36



 
Bug Chrome.png
936 KB View Download
Labels: Needs-Triage-M63
Thanks for filing the issue!

@Reporter: Could you please provide sample test file/URL which helps us to triage the issue from our end.


Cc: viswatej...@techmahindra.com sc00335...@techmahindra.com
Labels: Triaged-ET Needs-Feedback
You'll find an example attached to this post.
In the Chrome developer tool, add a breakpoint at line #16, refresh the page (F5 key), and then the Watch pane, the Scope pane and the Console can display args content very well as expected, whereas the mouse hover of the variable name in the source code file (in the function declaration or in the function body) displays an "Unexpected token ..." error. As it is shown in the 2nd joined file.
Bug#797296.html
619 bytes View Download
Bug Chrome 2.png
5.8 MB View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Jan 29 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "sc00335628@techmahindra.com" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: Platform>DevTools
Labels: OS-Chrome OS-Linux OS-Mac
Owner: kozy@chromium.org
Status: Assigned (was: Unconfirmed)
Project Member

Comment 8 by bugdroid1@chromium.org, Aug 15

Status: Fixed (was: Assigned)
Cc: einbinder@chromium.org
 Issue 815169  has been merged into this issue.

Sign in to add a comment