josdejong/mathjs

Evaluating 'help(not)' throws SyntaxError

Open

#1,905 opened on Jul 3, 2020

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

Repository metrics

Stars
 (15,065 stars)
PR merge metrics
 (PR metrics pending)

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