Skip to content

Self-host: remove arrow/closure callbacks from spine - #2578

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-2573-no-arrow-closures
May 26, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-2573-no-arrow-closures

Conversation

@PurHur

@PurHur PurHur commented May 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixes bootstrap make bootstrap-selfhost-link failing on Expr_ArrowFunction in lib/JIT.php by removing callback arrow functions.
  • Removes remaining anonymous-function callback usage on the self-host lib spine smoke path (AttributeRegistry + M3 emit TU helper) so the compiler doesn’t hit Expr_Closure.

Verification (harness-safe)

  • ./script/docker-exec.sh -- bash -lc 'make bootstrap-selfhost-link'
  • ./script/docker-exec.sh -- bash -lc 'BOOTSTRAP_LIB_SPINE_SMOKE=1 make bootstrap-selfhost-lib-spine-smoke'
  • ./script/docker-exec.sh -- bash -lc './script/bootstrap-loop-probe.sh --dry-run'

Closes #2573.

Made with Cursor

Avoid Expr_ArrowFunction/Expr_Closure on the self-host link + lib spine smoke path by replacing callback-style helpers with closure-free loops and callable arrays.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Self-host M0/M2: lib/JIT.php Expr_ArrowFunction fatal blocks bootstrap-selfhost-link

1 participant