josdejong/mathjs

Evaluating 'help(not)' throws SyntaxError

Open

#1,905 opened on Jul 3, 2020

 (7 comments) (0 reactions) (0 assignees)JavaScript (1,315 forks)batch import
bughelp wanted

Repository metrics

Stars
 (15,068 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

For some reason, evaluating help(not) throws an error. For example:

// Works fine
console.log(math.evaluate('help(and)'));

// "SyntaxError: Value expected (char 9)"
console.log(math.evaluate('help(not)'));

Please see this jsfiddle example.

Contributor guide