Skip to content

querystring.stringify does not support BigInt #36080

Closed
@kennytm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.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