Skip to content

fix: handle transition edge cases#31

Open
ShiroKSH wants to merge 1 commit into
kyleconroy:masterfrom
ShiroKSH:fix/transition-edge-cases
Open

fix: handle transition edge cases#31
ShiroKSH wants to merge 1 commit into
kyleconroy:masterfrom
ShiroKSH:fix/transition-edge-cases

Conversation

@ShiroKSH

Copy link
Copy Markdown

Summary

  • return boolean results for unknown events instead of raising a nil-index error
  • stop leave callbacks after an onbefore veto and clear the transition marker on cancellation
  • preserve nil callback arguments across async transitions
  • correctly report an invalid event while it cancels a pending async transition
  • correct initialization and async-cancellation examples

Tests

  • Busted spec on LuaJIT: 23 successes, 0 failures, 0 errors, 0 pending

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