New issue
Advanced search Search tips

Issue 878723 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Variable is not defined but it defined!

Reported by mixalbl4...@gmail.com, Aug 29

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/68.0.3440.106 Chrome/68.0.3440.106 Safari/537.36

Steps to reproduce the problem:
1. Open DevTools => Console
2. Paste this code:

var a = function () {
    !function b() {
        b.id || (b.id = 666);
        debugger
        console.log(b);
        alert(b.id)
    }()
};
a();

3. Stop on "debugger".
4. Hover variable "b" or write it to "Console"

What is the expected behavior?
it have to show "b" function

What went wrong?
Uncaught ReferenceError: b is not defined

Did this work before? N/A 

Chrome version: 68.0.3440.106  Channel: stable
OS Version: Mint 18.3
Flash Version: 

alert(b) and alert(b.id) works fine, but DevConsole say`s "is not defined"
 
bugchrome.png
75.8 KB View Download
bugchrome2.png
3.4 KB View Download
Labels: Needs-Triage-M68
Owner: kozyatinskiy@chromium.org
Status: Assigned (was: Unconfirmed)
Owner: kozy@chromium.org

Sign in to add a comment