You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 6.5.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 15 16:40:02 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
REPL
What steps will reproduce the bug?
In both the Node.js REPL and the browser console, there is a reference error when trying to assign a variable obj1 that has not been declared to another variable obj2 (this is expected).
In the Node.js REPL, after the initial ReferenceError, attempting to correct the code by assigning obj to obj2 results in a SyntaxError due to obj2 being declared already. Further attempts to access obj2 result in a ReferenceError (different from browser).
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
The expected behavior in both the Node.js REPL and the browser console should be consistent with JavaScript's rules for variable declarations and assignments.
What do you see instead?
The obj2 reference error.
Additional information
I am using Chromium Version 126.0.6478.126 (Official Build) snap (64-bit) in Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
Version
22.5.1
Platform
Subsystem
REPL
What steps will reproduce the bug?
In both the Node.js REPL and the browser console, there is a reference error when trying to assign a variable
obj1
that has not been declared to another variableobj2
(this is expected).In the Node.js REPL, after the initial
ReferenceError
, attempting to correct the code by assigning obj toobj2
results in aSyntaxError
due toobj2
being declared already. Further attempts to accessobj2
result in aReferenceError
(different from browser).How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
The expected behavior in both the Node.js REPL and the browser console should be consistent with JavaScript's rules for variable declarations and assignments.
What do you see instead?
The
obj2
reference error.Additional information
I am using Chromium Version 126.0.6478.126 (Official Build) snap (64-bit) in Ubuntu 22.04
The text was updated successfully, but these errors were encountered: