Skip to content

Fix array callback compatibility for function declaration refs#11

Merged
memburg merged 1 commit into
mainfrom
bugfix-10-array-callback-fn-declarations
May 26, 2026
Merged

Fix array callback compatibility for function declaration refs#11
memburg merged 1 commit into
mainfrom
bugfix-10-array-callback-fn-declarations

Conversation

@memburg
Copy link
Copy Markdown
Owner

@memburg memburg commented May 26, 2026

What changed

  • Extended callback argument normalization to function declaration references used in array callback methods
  • Added callback-arity metadata plumbing for function references resolved via the interpreter
  • Kept strict arity for regular non-callback function calls
  • Added regression specs for map(double), reduce(sum, 0), and undefined padding behavior
  • Updated reference docs for callback argument behavior

Validation

  • Ran crystal spec

Closes #10
Closes #8

@memburg memburg merged commit 7818391 into main May 26, 2026
3 checks passed
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.

Bug: Array callbacks still fail for function declarations Bug: Array callbacks fail when function declares fewer params

1 participant