Skip to content

Conversation

@anim001k
Copy link

Description

  • Summary: Correct the JS timer callback argument forwarding to match standard JS semantics.
  • What changed: In internal/jsre/jsre.go, the callback is now invoked with only the arguments after the callback and delay.
  • Why: Previously, the callback received the function and delay as parameters, causing unexpected behavior and logic bugs for consumers.

Copy link
Member

@MariusVanDerWijden MariusVanDerWijden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great catch!

@anim001k
Copy link
Author

LGTM, great catch!

@MariusVanDerWijden thanks!

@anim001k
Copy link
Author

@MariusVanDerWijden is it ok to be merge?

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.

2 participants