- Version: v.6.3.1
- Platform: Linux (Ubuntu 14.04)
- Subsystem:
repl (I think)
gives TypeError: Constructor Set requires 'new'.
However, after this:
gives ReferenceError: s is not defined
and
gives TypeError: Identifier 's' has already been declared.
I'm not sure whether this is a real bug or it's expected behaviour, but it sure does seem unusual that s becomes unusable from this point in in the repl.
This isn't a problem when running node on a js file because the TypeError simply terminates execution.
repl(I think)gives
TypeError: Constructor Set requires 'new'.However, after this:
gives
ReferenceError: s is not definedand
gives
TypeError: Identifier 's' has already been declared.I'm not sure whether this is a real bug or it's expected behaviour, but it sure does seem unusual that
sbecomes unusable from this point in in the repl.This isn't a problem when running
nodeon a js file because the TypeError simply terminates execution.