@ball-lang/engine 1.5.3 → 1.5.5

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.
@@ -1709,9 +1709,11 @@ export function createEngineSetup(mod: EngineModule) {
1709
1709
  };
1710
1710
  }
1711
1711
 
1712
- // Patch __bts (ball-to-string) to unwrap BallFuture/BallGenerator.
1713
- // The compiled engine sets globalThis.__bts during preamble execution.
1714
- // We wrap it after the engine runs its preamble.
1712
+ // Patch __bts (ball-to-string) to unwrap BallFuture/BallGenerator, IF the
1713
+ // compiled engine has installed one on globalThis. As of the current
1714
+ // compiled_engine.ts, it never does (grepped: zero assignments to
1715
+ // globalThis.__bts) — this is a defensive no-op guarding against a future
1716
+ // preamble that starts exposing one, not an active code path today.
1715
1717
  const origBts = (globalThis as any).__bts;
1716
1718
  if (typeof origBts === 'function') {
1717
1719
  (globalThis as any).__bts = function(v: any): string {