mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Named function 'eval' not allowed in strict mode
This commit is contained in:
parent
fc07e50ca3
commit
2d34cb5fc0
2
math.js
2
math.js
@ -9495,7 +9495,7 @@ math.clone = function clone(x) {
|
||||
* @param {String | Array | Matrix} expr
|
||||
* @return {*} res
|
||||
*/
|
||||
math.eval = function eval(expr) {
|
||||
math.eval = function (expr) {
|
||||
if (arguments.length != 1) {
|
||||
throw newArgumentsError('eval', arguments.length, 1);
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
* @param {String | Array | Matrix} expr
|
||||
* @return {*} res
|
||||
*/
|
||||
math.eval = function eval(expr) {
|
||||
math.eval = function (expr) {
|
||||
if (arguments.length != 1) {
|
||||
throw newArgumentsError('eval', arguments.length, 1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user