Skip to content

isURLSearchParameters(null) will throw an error. Uncaught TypeError: Cannot read properties of null (reading 'append') #1515

Description

@jimmywarting

Just so you know isURLSearchParameters(null) will throw an error. Uncaught TypeError: Cannot read properties of null (reading 'append')
Should always check for null after checking for typeof o === 'object'

Originally posted by @WORMSS in #296 (comment)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions