-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
I trying
import { create, all } from 'mathjs'
const math = create(all, {})
const expressionFromUser = 'sum(1,1)'
const result = safeEval(expressionFromUser.replace(/sum/gi, `math.sum`), { math })but I am getting the following error:
TypeError: x.constructor is undefined
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels