@ball-lang/engine 1.68.4 → 1.68.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ball-lang/engine",
3
- "version": "1.68.4",
3
+ "version": "1.68.6",
4
4
  "description": "Ball language engine — interprets Ball programs in TypeScript/JavaScript. Runs in Node.js and browsers.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1681,8 +1681,6 @@ export class BallEngine {
1681
1681
  constructor(program: any, stdout: any, stderr: any, stdinReader: any, envGet: any, args: any, enableProfiling: any, maxRecursionDepth: any, timeoutMs: any, maxMemoryBytes: any, maxModules: any, maxExpressionDepth: any, maxProgramSizeBytes: any, sandbox: any, moduleHandlers: any, resolver: any) {
1682
1682
  if (typeof stdout === 'object' && stdout !== null && !Array.isArray(stdout) && ('stdout' in stdout || 'stderr' in stdout || 'stdinReader' in stdout || 'envGet' in stdout || 'args' in stdout || 'enableProfiling' in stdout || 'maxRecursionDepth' in stdout || 'timeoutMs' in stdout || 'maxMemoryBytes' in stdout || 'maxModules' in stdout || 'maxExpressionDepth' in stdout || 'maxProgramSizeBytes' in stdout || 'sandbox' in stdout || 'moduleHandlers' in stdout || 'resolver' in stdout)) { let __n = stdout; stdout = __n.stdout; stderr = __n.stderr; stdinReader = __n.stdinReader; envGet = __n.envGet; args = __n.args; enableProfiling = __n.enableProfiling; maxRecursionDepth = __n.maxRecursionDepth; timeoutMs = __n.timeoutMs; maxMemoryBytes = __n.maxMemoryBytes; maxModules = __n.maxModules; maxExpressionDepth = __n.maxExpressionDepth; maxProgramSizeBytes = __n.maxProgramSizeBytes; sandbox = __n.sandbox; moduleHandlers = __n.moduleHandlers; resolver = __n.resolver; }
1683
1683
  this.program = program;
1684
- this.stdout = stdout;
1685
- this.stderr = stderr;
1686
1684
  this.stdinReader = stdinReader;
1687
1685
  this.maxRecursionDepth = maxRecursionDepth;
1688
1686
  this.timeoutMs = timeoutMs;
@@ -1691,7 +1689,6 @@ export class BallEngine {
1691
1689
  this.maxExpressionDepth = maxExpressionDepth;
1692
1690
  this.maxProgramSizeBytes = maxProgramSizeBytes;
1693
1691
  this.sandbox = sandbox;
1694
- this.moduleHandlers = moduleHandlers;
1695
1692
  this.stdout = stdout ?? print;
1696
1693
  this._resolver = resolver;
1697
1694
  this.stderr = stderr ?? ((s) => io.stderr.writeln(s));
@@ -10352,6 +10349,10 @@ export class StdModuleHandler extends BallModuleHandler {
10352
10349
 
10353
10350
  static subset(functions: any): any {
10354
10351
  const __inst = Object.create(StdModuleHandler.prototype);
10352
+ __inst._dispatch = {};
10353
+ __inst._composedDispatch = {};
10354
+ __inst._allowlist = null;
10355
+ __inst._tombstones = new Set();
10355
10356
  __inst._allowlist = functions.toSet();
10356
10357
  return __inst;
10357
10358
  }