josdejong/mathjs

Remove support for Object literals as scope objects

Open

#2,165 创建于 2021年4月10日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (13,832 star) (1,298 fork)batch import
featurehelp wanted

描述

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.

贡献者指南