New issue
Advanced search Search tips

Issue 891695 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Debugger inside a closure with no statements shows incorrect information.

Reported by ghrin...@gmail.com, Oct 3

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

Steps to reproduce the problem:
1. Open developer tools.
2. Go to console tab.
3. Paste the following code in:
   function closure(first) {
     return function inner(second) {
       debugger;
     };
   }
   closure('first')('second');
4. Press Enter.
5. Devtools should switch to sources tab and highlight the line where debugger keyword is.
6. Move your mouse pointer to the function argument named `first`. 

What is the expected behavior?
When pointing at the function argument named `first` you should see its value 'first';

What went wrong?
I see a reference error: first is not defined.

Did this work before? N/A 

Chrome version: 69.0.3497.100  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

If we add console.log(first) before debugger statement then we can see the actual value of the argument.
 
debugger_bug.png
36.8 KB View Download
Labels: Needs-Triage-M69
Owner: kozyatinskiy@chromium.org
Owner: kozy@chromium.org
Cc: phanindra.mandapaka@chromium.org
Labels: Triaged-ET Target-71 M-71 FoundIn-71 FoundIn-70 FoundIn-69 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
ghringho@ Thanks for the issue...

Able to reproduce the issue on reported chrome version 69.0.3497.100 also on latest chrome 71.0.3572.0 using Mac 10.13.6, Ubuntu 14.04 and Windows 10.  

Same behavior is seen on M62(62.0.3202.94) hence considering it as non-regression and marking it as Untriaged.

Thanks..!
Status: Assigned (was: Untriaged)

Sign in to add a comment