Closed iamprayush closed 3 years ago
Parsing expressions like + or (+) should yield errors but they don't. I tried running console.log(nerdamer('+')) and no errors were thrown, whereas if I did the same with any other operator, errors were thrown as expected.
+
(+)
console.log(nerdamer('+'))
@iamprayush, agreed. This should be easy enough to fix. I'll probably have it throw something like UnexpectedOperatorError.
UnexpectedOperatorError
Parsing expressions like
+
or(+)
should yield errors but they don't. I tried runningconsole.log(nerdamer('+'))
and no errors were thrown, whereas if I did the same with any other operator, errors were thrown as expected.