josdejong/mathjs

Remove support for Object literals as scope objects

Aberta

#2.165 aberto em 10 de abr. de 2021

 (1 comentário) (0 reação) (0 responsável)JavaScript (1.314 forks)batch import
featurehelp wanted

Métricas do repositório

Stars
 (15.065 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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