Skip to content

Commit

Permalink
Bump QuickJS' own limit to 6 MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Sep 18, 2023
1 parent 364206c commit 74e869d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipline/src/hostMain/kotlin/app/cash/zipline/Zipline.kt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ actual class Zipline private constructor(
// The default stack size is 256 KiB. QuickJS is not graceful when the stack size is exceeded
// so we set a high limit so it only fails on definitely buggy code, not just recursive code.
// Expect callers to use 8 MiB stack sizes for their calling threads.
quickJs.maxStackSize = 4 * 1024 * 1024L
quickJs.maxStackSize = 6 * 1024 * 1024L
initModuleLoader(quickJs)

val scope = CoroutineScope(dispatcher)
Expand Down

0 comments on commit 74e869d

Please sign in to comment.