josdejong/mathjs

Remove support for Object literals as scope objects

Open

#2165 aperta il 10 apr 2021

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (1298 fork)batch import
featurehelp wanted

Metriche repository

Star
 (13.832 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor