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
Platform: Darwin MacInBoxs-MacBook-Pro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
Subsystem: Unkown
What steps will reproduce the bug?
In node console execute:
// Assigment function who will throw the error functionthrowError(){thrownewError();}// throws an error as expected (can't create a const variable without value)constfoo;// functions throws an error as expectedconstfoo=throwError();// Throws an ReferenceError of variable not definedfoo;// Throws an TypeError of Assigment to const variablefoo=1;
How often does it reproduce? Is there a required condition?
Always there is an error while assigning to a const variable
What is the expected behavior?
Not create the const variable
What do you see instead?
Const variable created without value
Additional information
The text was updated successfully, but these errors were encountered:
What steps will reproduce the bug?
In node console execute:
How often does it reproduce? Is there a required condition?
Always there is an error while assigning to a const variable
What is the expected behavior?
Not create the const variable
What do you see instead?
Const variable created without value
Additional information
The text was updated successfully, but these errors were encountered: