Chrome Version: 64.0.3282.167 (Official Build) (64-bit)
OS: Linux
What steps will reproduce the problem?
(1) Save the following code to an HTML file:
<script>
function foo(...list) {
debugger;
}
foo(1,2,3);
</script>
(2) Open devtools.
(3) Navigate to the HTML file.
(4) In the source view in devtools, hover over `...list`.
What is the expected result?
A popup with the value of `list` should appear.
What happens instead?
A popup with a `SyntaxError` appears. (Screenshot attached.)
I believe that this is probably caused by devtools incorrectly assuming that the ellipsis is part of the argument name, causing devtools to attempt to evaluate "...list" as an expression.
|
Deleted:
devtools-ellipsis-argument-highlight.png
56.1 KB
|
|
devtools-ellipsis-argument-highlight.png
56.1 KB
View
Download
|
|
Comment 1 by jannh@google.com
, Feb 23 2018