josdejong/mathjs

Indicating expression location for error

Ouverte

#2 318 ouverte le 19 sept. 2021

 (15 commentaires) (0 réaction) (0 personne assignée)JavaScript (1 314 forks)batch import
featurehelp wanted

Métriques du dépôt

Stars
 (15 065 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

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)

Guide contributeur