josdejong/mathjs

Remove support for Object literals as scope objects

Offen

#2.165 geöffnet am 10.04.2021

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.314 Forks)batch import
featurehelp wanted

Repository-Metriken

Stars
 (15.065 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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