josdejong/mathjs

Remove support for Object literals as scope objects

Open

#2,165 建立於 2021年4月10日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (1,298 fork)batch import
featurehelp wanted

倉庫指標

Star
 (13,832 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南