"is not defined" and "has already been declared" happens at the same time
Reported by
frankyju...@gmail.com,
Mar 18 2018
|
||||
Issue description
Chrome Version : 65.0.3325.162
OS Version: OS X 10.12.6
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari:
Firefox: OK
IE/Edge:
What steps will reproduce the problem?
1. In console execute
2. `let x = a` // Uncaught ReferenceError: a is not defined
3. `x = 2` // Uncaught ReferenceError: x is not defined
4. `let x = 2` // Uncaught SyntaxError: Identifier 'x' has already been declared
What is the expected result?
In step 3, x should successfully set to 2.
What happens instead of that?
Uncaught ReferenceError: x is not defined
Please provide any additional information below. Attach a screenshot if
possible.
UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36
,
Mar 19 2018
frankyjuang@ Thanks for the feedback. Able to reproduce the issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the latest Canary 67.0.3375.0 and Stable 65.0.3325.162 by following the steps given above. Can see the error 'Identifier 'x' has already been declared' in Devtools -> Console after following steps 2 and 3. Attached is the screen shot for reference. This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. Hence marking this as Untriaged for further updates from Dev. Thanks..
,
Mar 20 2018
,
Mar 27 2018
I would assume this is working as intended? feel free to close if this is the case.
,
Mar 27 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, Mar 19 2018