JavaScript Debugger highlight on lines with template strings could be improved
Reported by
joepec...@gmail.com,
Sep 21 2016
|
|||
Issue description
Chrome Version: 55.0.2862.0 (Official Build) canary (64-bit)
OS Version: OS X 10.12
Test page:
<script>
debugger;
function a() { return 2; }
let s = `one ${1} two ${a()} three ${3}`;
</script>
What steps will reproduce the problem?
1. Inspect test page
2. Reload to pause at the debugger statement
3. Step Over to pause on the template string line
=> Highlighted part of the expression is unexpected
What is the expected result?
Pause location highlights from the start of the template string (the starting `) or the first expression (in ${1}).
What happens instead of that?
Pause location highlights from the last expression in the template string (in ${3}).
,
Sep 22 2016
,
Dec 10
|
|||
►
Sign in to add a comment |
|||
Comment 1 by paulir...@chromium.org
, Sep 22 2016