josdejong/mathjs

Remove support for Object literals as scope objects

Open

#2,165 opened on Apr 10, 2021

 (1 comment) (0 reactions) (0 assignees)JavaScript (1,314 forks)batch import
featurehelp wanted

Repository metrics

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

Description

PR #2166 adds a warning that support for bare objects as scopes will be removed in a future release.

This issue is for the removal of support, in that future release.

const scope = {}
math.evaluate("constructor(foo) = foo", scope)

should error.

Contributor guide