We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2898095 commit 68d2248Copy full SHA for 68d2248
src/core/storage.ts
@@ -342,7 +342,7 @@ export function preprocessCapture(
342
error?: any
343
) {
344
// Iterate over calls and functions
345
- let funcsCopy = [...functions]
+ const funcsCopy = [...functions]
346
let callsCopy = [...calls].sort((callA, callB) => callA.timestamp - callB.timestamp).reverse()
347
348
let size = 0
@@ -373,13 +373,6 @@ export function preprocessCapture(
373
funcsCopy[i].output = FLYTRAP_UNSERIALIZABLE_VALUE
374
}
375
376
- tryCatchSync(() => {
377
- size += stringify(funcsCopy[i]).length
378
- if (size >= 1_000_000) {
379
- // Remove the rest
380
- funcsCopy = funcsCopy.slice(0, 1)
381
- }
382
- })
383
384
return [funcsCopy, callsCopy, error] as const
385
0 commit comments