Skip to content

web: use the SimpleFunctions example in the trace playground#264

Merged
gnidan merged 1 commit into
mainfrom
docs-simplefunctions-example
Jul 16, 2026
Merged

web: use the SimpleFunctions example in the trace playground#264
gnidan merged 1 commit into
mainfrom
docs-simplefunctions-example

Conversation

@gnidan

@gnidan gnidan commented Jul 16, 2026

Copy link
Copy Markdown
Member

The explore trace playground's "A function call" demo compiled a minimal two-line Adder. Swap it for SimpleFunctions — the same basic/functions.bug the BUG playground dropdown uses — which calls add directly and then a nested addThree that calls add twice, so the call stack nests two frames deep. The source is referenced from the canonical @ethdebug/bugc/examples export (test annotations stripped) rather than copied into tracing-examples.ts, and the section prose is updated to match.

The explore trace playground's function-call demo compiled a minimal
two-line `Adder`. Swap it for `SimpleFunctions` — the same
`basic/functions.bug` the BUG playground dropdown uses — which calls
`add` directly and then a nested `addThree` that calls `add` twice, so
the call stack nests two frames deep. The source is referenced from the
canonical `@ethdebug/bugc/examples` export (test annotations stripped)
rather than copied, and the section prose is updated to match.
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-16 05:53 UTC

@gnidan
gnidan merged commit ca67e76 into main Jul 16, 2026
4 checks passed
@gnidan
gnidan deleted the docs-simplefunctions-example branch July 16, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant