feat:node-modules

This commit is contained in:
houjunxiang
2025-11-24 10:26:18 +08:00
parent 753766893b
commit 8a3e48d856
8825 changed files with 567399 additions and 1 deletions

18
node_modules/mathjs/lib/esm/utils/scope.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import { ObjectWrappingMap, PartitionedMap } from './map.js';
/**
* Create a new scope which can access the parent scope,
* but does not affect it when written. This is suitable for variable definitions
* within a block node, or function definition.
*
* If parent scope has a createSubScope method, it delegates to that. Otherwise,
* creates an empty map, and copies the parent scope to it, adding in
* the remaining `args`.
*
* @param {Map} parentScope
* @param {Object} args
* @returns {PartitionedMap}
*/
export function createSubScope(parentScope, args) {
return new PartitionedMap(parentScope, new ObjectWrappingMap(args), new Set(Object.keys(args)));
}