-
Notifications
You must be signed in to change notification settings - Fork 29.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const beavior when erroring to set a module #16520
Comments
@Ginden beat me to it. :-) Closing, known issue; please see the other bug reports. |
bnoordhuis
added
the
duplicate
Issues and PRs that are duplicates of other issues or PRs.
label
Oct 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I normally use the repl, to test out modules before actually using them.
Today I run into an issue that I don't really know if it's an issue or a "feature".
So, basically, you require a non existent module, assigning it to a const identifier. Then, when you try to redefine it (may be typing the correct module name, it doesn't matter much) it says it has been already declared, but after inspecting it, it says it's not defined.
So, weather the last reference error is wrong, saying it's not
defined
. Or may be there is a slight difference betweendefined
anddeclared
?The text was updated successfully, but these errors were encountered: