josdejong / josdejong/mathjs

Remove support for Object literals as scope objects

Open
#2,165 1 comment 0 reactions 0 assignees View on GitHub
feature help wanted
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.