Is not defined and identifier has already been declared at the same time in the console
Reported by
bouzli...@gmail.com,
Jan 9 2017
|
|||
Issue descriptionChrome Version: 55.0.2883.95 OS Version: OS X 10.11.6 Other browsers tested: Firefox 4.x: OK What steps will reproduce the problem? 1. Type in the devtools console: 'let x = a;' (// Uncaught ReferenceError: a is not defined) 2. Then type in the devtools console: 'x = 2;' (// Uncaught ReferenceError: x is not defined) 3. Then type in the devtools console: 'let x = 2;' (// Uncaught SyntaxError: Identifier 'x' has already been declared) What is the expected result? I would expect to be able to either assign value to a variable or declare it without errors. Even after first ReferenceError. What happens instead of that? There are some errors thrown. UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36 StackOverflow question: http://stackoverflow.com/questions/41395939/is-not-defined-and-identifier-has-already-been-declared-at-the-same-time/41415267
,
Jan 10 2017
,
Oct 10 2017
,
Oct 16 2017
,
Aug 16
,
Aug 17
https://twitter.com/sebmck/status/1030182152715943936?s=19 is a really nice solution. Make each line a lexical scope, with its parent scope the scope from the line before.
,
Aug 21
Issue 875070 has been merged into this issue.
,
Sep 21
|
|||
►
Sign in to add a comment |
|||
Comment 1 by ajha@chromium.org
, Jan 10 2017Labels: Needs-Triage-M55