josdejong/mathjs

Remove support for Object literals as scope objects

Open

#2.165 aberto em 10 de abr. de 2021

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (1.298 forks)batch import
featurehelp wanted

Métricas do repositório

Stars
 (13.832 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador