josdejong/mathjs
Auf GitHub ansehenRemove support for Object literals as scope objects
Open
#2.165 geöffnet am 10. Apr. 2021
featurehelp wanted
Repository-Metriken
- Stars
- (13.832 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
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.