Skip to content

Add support for literal NaN delay in no-setTimeout-if/no-setInterval-if scriplets #1136

Closed

Description

@gorhill

Related commit:

URL:

Filter:

  • gamesradar.com##+js(nosiif)

Discussion:

In the above commit, I erroneously assumed specifying a delay which value is converted to NaN would cause the scriptlet to match properly, but it doesn't, in the end this works because of the match against the function string.

It should be possible to specify literal NaN as delay in those scriptlets, in which case a typed comparison using isNaN() would be used.

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

    enhancementfixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions