dy / subscript

Fast and tiny expression evaluator with minimal syntax.
ISC License
105 stars 4 forks source link

passed wrong type to binary() #17

Open colorcube opened 10 months ago

colorcube commented 10 months ago

My IDE might have found an error:

https://github.com/dy/subscript/blob/098f480fe5a87d21a030b0ef084c57423b0125ec/subscript.js#L19

the third parameter expects a number:

https://github.com/dy/subscript/blob/098f480fe5a87d21a030b0ef084c57423b0125ec/parse.js#L81

dy commented 10 months ago

yeah, IDEs are not very comprehensive. It's not an error, it's intentional