Skip to content

No support for BigInt #53

@mzedeler

Description

@mzedeler
const { toJSON } = require('transit-immutable-js')
const { Map } = require('immutable')
toJSON(Map().set(1n, 'test')

This results in Uncaught TypeError: Cannot use 'in' operator to search for 'toMap' in 1

The same goes for toJSON(Map().set('test', 1n)).

I may be able to add BigInt support if you're open for PRs.'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions