Skip to content

[0.77] Align TimerManager sequential ids and function error handling with web standard #964

@kitten

Description

@kitten

Target Branch

0.77

Link to commit or PR to be picked

facebook/react-native@480a464

Description

Calls to create timers should return sequential ids that are greater than zero and should silently reject non-function arguments on setTimeout and setInterval by returning zero to align with the web standard for it.

This is a spec-compliance bug in React Native and is also a regression due to the introduction of TimerManager

Note

I'm not sure if pick requests for 0.77 (for end of cycle) are still accepted. For completeness' sake I've created one and checked that the commit cherry-picks cleanly onto 0.77-stable. However, if we're not issuing patch releases for 0.77 anymore, feel free to close and disregard this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions