Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jackkav/quickjs-emscripten
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fix-bjson-references
Choose a base ref
...
head repository: jackkav/quickjs-emscripten
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix-asyncify-stack
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 3 files changed
  • 2 contributors

Commits on Oct 16, 2026

  1. Size the asyncify buffer from the max stack size so deep suspensions …

    …cannot abort
    
    Asyncify's buffer holds the saved locals of each suspended wasm frame, which needs up to
    ~1.9x the native stack depth that JS_SetMaxStackSize limits (measured across release/debug,
    quickjs/quickjs-ng and several recursion shapes). With the buffer set to exactly the limit,
    suspending near the deepest recursion QuickJS allows overflowed it and aborted the module
    ("unreachable"). Set it to 3x the limit (at least the build default), capped at 1 GiB.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    jackkav and claude committed Oct 16, 2026
    Configuration menu
    Copy the full SHA
    1f62e55 View commit details
    Browse the repository at this point in the history
Loading