josdejong / josdejong/mathjs

Indicating expression location for error

Open
#2,318 15 comments 0 reactions 0 assignees View on GitHub
feature help wanted
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

When evaluating with multiple expressions and one of them has an error:

`math.evaluate(["1+1","2+"])`

The error is:

`SyntaxError: Unexpected end of expression (char 3)`

I would like to know which is the expression with the error:
`SyntaxError: Unexpected end of expression (expr 2, char 3)`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.