New issue
Advanced search Search tips

Issue 649155 link

Starred by 4 users

Issue metadata

Status: Closed
Owner:
Closed: Dec 10
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

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}).

 
Components: Platform>DevTools
Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)
Status: Closed (was: Assigned)

Sign in to add a comment