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"
,
Sep 3
,
Sep 20
|
|||
►
Sign in to add a comment |
|||
Comment 1 by viswa.karala@chromium.org
, Aug 29