Skip to content

Conversation

@anim001k
Copy link
Contributor

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
Contributor Author

LGTM, great catch!

@MariusVanDerWijden thanks!

@anim001k
Copy link
Contributor Author

@MariusVanDerWijden is it ok to be merge?

@MariusVanDerWijden MariusVanDerWijden added this to the 1.16.6 milestone Oct 28, 2025
@MariusVanDerWijden MariusVanDerWijden merged commit 59d08c6 into ethereum:master Oct 28, 2025
4 of 6 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.

2 participants