josdejong/mathjs

Indicating expression location for error

Open

#2,318 创建于 2021年9月19日

在 GitHub 查看
 (15 评论) (0 反应) (0 负责人)JavaScript (13,832 star) (1,298 fork)batch import
featurehelp wanted

描述

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)

贡献者指南