Skip to content

feat(Worklets): actionable error when passing local function to scheduleOnRN#9386

Draft
tjzel wants to merge 16 commits into
mainfrom
@tjzel/worklets/local-function
Draft

feat(Worklets): actionable error when passing local function to scheduleOnRN#9386
tjzel wants to merge 16 commits into
mainfrom
@tjzel/worklets/local-function

Conversation

@tjzel
Copy link
Copy Markdown
Collaborator

@tjzel tjzel commented May 11, 2026

Summary

Addressing a long overdue issue, where passing a locally defined function to scheduleOnRN would crash the app with a vague stack trace.

This PR adds an actionable error in such cases. I had to refactor a bunch of code for that but even more changes are coming in #9272.

Before (straight crash) After (scrumptious LogBox)
Screenshot 2026-05-12 at 13 14 04   Simulator Screenshot - iPhone 17 - 2026-05-12 at 14 06 25

Test plan

TODO

Base automatically changed from @tjzel/runtime-tests to main May 12, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant