From 5016f04e610d43dbea90d01c65e782cd1517b249 Mon Sep 17 00:00:00 2001 From: sysy <2772196789@qq.com> Date: Mon, 14 Sep 2026 17:17:04 -0400 Subject: [PATCH] fix: remove config from expression scope config() should not be callable from math.evaluate() expressions as it mutates the shared configuration singleton, affecting all subsequent evaluations on the same instance. --- src/core/create.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/create.js b/src/core/create.js index bb3a7bbe04..368081c9ac 100644 --- a/src/core/create.js +++ b/src/core/create.js @@ -160,9 +160,7 @@ export function create (factories, config) { math.expression = { transform: {}, - mathWithTransform: { - config: math.config - } + mathWithTransform: {} } // cached factories and instances used by function load