@mastra/quickjs 0.1.2 → 0.1.3
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/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/transport.d.ts +2 -1
- package/dist/transport.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -147758,8 +147758,12 @@ function getClosingParenthesisPos(node) {
|
|
|
147758
147758
|
*/
|
|
147759
147759
|
/** Default interpreter heap limit, in MiB. */
|
|
147760
147760
|
const DEFAULT_MEMORY_LIMIT_MB = 128;
|
|
147761
|
-
/**
|
|
147762
|
-
|
|
147761
|
+
/**
|
|
147762
|
+
* Default interpreter stack limit, in bytes. Guards runaway recursion. Kept low
|
|
147763
|
+
* enough that QuickJS's own guard trips before the host's native stack (smallest
|
|
147764
|
+
* on arm64), so deep recursion is a catchable guest error, not a host crash.
|
|
147765
|
+
*/
|
|
147766
|
+
const DEFAULT_MAX_STACK_SIZE_BYTES = 256 * 1024;
|
|
147763
147767
|
/** How long the guest's leftover job queue may run while being drained. */
|
|
147764
147768
|
const DRAIN_BUDGET_MS = 50;
|
|
147765
147769
|
/** Upper bound on drain passes, so a job queue that refills cannot spin forever. */
|
|
@@ -147897,6 +147901,7 @@ var QuickJsCodeModeTransport = class {
|
|
|
147897
147901
|
abandonedGuestResult?.error?.dispose();
|
|
147898
147902
|
abandonedGuestResult = void 0;
|
|
147899
147903
|
drainJobs();
|
|
147904
|
+
runtime.setMemoryLimit(-1);
|
|
147900
147905
|
context.dispose();
|
|
147901
147906
|
runtime.dispose();
|
|
147902
147907
|
};
|