New issue
Advanced search Search tips

Issue 823146 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue v8:5604
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

"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



 
螢幕快照 2018-03-19 4.15.16 AM.png
37.0 KB View Download
Labels: Needs-Triage-M65
Cc: susan.boorgula@chromium.org
Components: Blink
Labels: -Pri-3 Triaged-ET M-67 Target-67 FoundIn-67 OS-Linux OS-Windows Pri-2
Status: Untriaged (was: Unconfirmed)
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..
823146.PNG
48.7 KB View Download
Components: -Blink Blink>JavaScript
Components: -Blink>JavaScript Blink>JavaScript>Language
Owner: gsat...@chromium.org
Status: assigned (was: Untriaged)
I would assume this is working as intended? feel free to close if this is the case.
Mergedinto: v8:5604
Status: Duplicate (was: Assigned)
This is working as per spec.

Sign in to add a comment