Skip to content

querystring.stringify does not support BigInt #36080

Description

@kennytm

Is your feature request related to a problem? Please describe.

> querystring.stringify({a: 12345678901234567n})
'a='

it should print a=12345678901234567

Describe the solution you'd like

support bigint in additional to string, number and boolean.

i.e., in stringifyPrimitive encode any value where typeof v == 'bigint' as '' + v, the same as 'number'.

Describe alternatives you've considered

No.

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

    feature requestIssues requesting new Node.js features.querystringIssues and PRs related to the built-in querystring module.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions