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
dalechyn opened this issue
Jan 20, 2019
· 1 comment
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.questionIssues that look for answers.replIssues and PRs related to the REPL subsystem.
Platform: Linux parrot 4.19.0-parrot1-13t-amd64 deps: update openssl to 1.0.1j #1 SMP Debian 4.19.13-1parrot1.13t (2019-01-09) x86_64 GNU/Linux
Subsystem: none.
Hello. I've found next bug:
If you do a constructor call with a function which has an error, and create variable with that call, that variable won't ever be accessed.
Steps to reproduce:
node
> function WrongClass() {
... thio.a = 5 // lets asume we have typo error here
... }
undefined
> a
ReferenceError: a is not defined
> let a = new WrongClass()
ReferenceError: thio is not defined
at new WrongClass (repl:2:1)
> // Now we have an error and we are trying to redeclare a
undefined
> let a = 3
SyntaxError: Identifier 'a' has already been declared
> // Oops! Allright, lets try this
undefined
> a = 4
ReferenceError: a is not defined
> // So is it defined or not? Whaatt??
undefined
The text was updated successfully, but these errors were encountered:
dalechyn
changed the title
Variable declare bug.
Variable declaration bug.
Jan 20, 2019
BridgeAR
added
duplicate
Issues and PRs that are duplicates of other issues or PRs.
question
Issues that look for answers.
repl
Issues and PRs related to the REPL subsystem.
labels
Jan 20, 2019
It is really inconvenient that this is the case but there's little we can do to change this (maybe we should consider to work around this though as a lot of people run into this issue).
duplicateIssues and PRs that are duplicates of other issues or PRs.questionIssues that look for answers.replIssues and PRs related to the REPL subsystem.
Hello. I've found next bug:
If you do a constructor call with a function which has an error, and create variable with that call, that variable won't ever be accessed.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: