Skip to content

Non-numeric priority keys are silently dropped #54

Description

@Shinrai

Problem

The constructor runs priorities keys through parseInt, so a config like priorities: { high: { postDelay: 100 } } is dropped with no warning. The README's alias example had this mistake (fixed in #50), which shows how easy it is to hit.

Fix

Warn on keys that aren't integers, using the same deprecation/warning event mechanism or a thrown TypeError, so a typo can't silently disable a priority config. Add a test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreTouches core library / runtime source codepriority: lowMinor issue or improvement that can be deferred without impactstatus: implementedBuilt and deployed, but not yet fully tested/verifiedtype: bugSomething is broken or not behaving as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions