Skip to content

[pull] main from oven-sh:main - #12

Merged
pull[bot] merged 1 commit into
coleleavitt:mainfrom
oven-sh:main
Jul 26, 2026
Merged

pull[bot] merged 1 commit into
coleleavitt:mainfrom
oven-sh:main

Conversation

@pull

@pull pull Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


Summary by cubic

Fixes dropped async frames in error.stack when AsyncLocalStorage is active by unwrapping InternalFieldTuple from the promise reaction context. Restores async stack traces for direct await, combinators, and Promise.race under USE(BUN_JSC_ADDITIONS).

  • Bug Fixes
    • Include InternalFieldTuple.h behind USE(BUN_JSC_ADDITIONS).
    • In getAsyncStackTrace → getContextValueFromPromise, unwrap InternalFieldTuple(context, asyncContext) and return the underlying context so parent generator resolution succeeds.

Written for commit d103ebd. Summary will update on new commits.

Review in cubic

Under USE(BUN_JSC_ADDITIONS), JSPromise::resolveWithInternalMicrotaskForAsyncAwait
wraps the awaiting generator in InternalFieldTuple(generator, asyncContext) when
an AsyncLocalStorage store is active. getParentGenerator reads that context and
casts it with dynamicDowncast<JSAsyncFunctionGenerator>, which fails on the
tuple, so every at-async frame is dropped from error.stack.

Unwrap the tuple in getContextValueFromPromise so the direct-await, combinator,
and Promise.race branches all see the underlying context.
@pull pull Bot locked and limited conversation to collaborators Jul 26, 2026
@pull pull Bot added the ⤵️ pull label Jul 26, 2026
@pull
pull Bot merged commit d103ebd into coleleavitt:main Jul 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant