Undefined variable goes and looks for html elements with id equal to variable instead of being undefined.
Reported by
dav...@nuts.com,
Oct 23 2017
|
|
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: 1. Add div element with id = "blah" 2. Console.log(blah) without quotes 3. View in inspector for results What is the expected behavior? Should just be undefined right? What went wrong? I have not yet dug into why this is happening, but will shortly. Did this work before? N/A Chrome version: 61.0.3163.100 Channel: stable OS Version: OS X 10.12.6 Flash Version: To my best knowledge, undefined variables have always been undefined.
,
Oct 23 2017
Whoa, very interesting that it was designed in such a way. if (var !== undefined) could potential be a false positive. |
|
►
Sign in to add a comment |
|
Comment 1 by dglazkov@chromium.org
, Oct 23 2017