Skip to content

Problem with -0 #14

@borisgontar

Description

@borisgontar

The method Integer.fromBits does not accept javascript's minus zero the same way other methods do:

Integer(-0)
Integer { high: 0, low: 0 }
Integer.fromNumber(-0)
Integer { high: 0, low: 0 }
Integer.fromString('-0')
Integer { high: 0, low: 0 }
Integer.fromBits(0, -0)
TypeError: Expected second arguement to be a regular 32-bit signed integer

The problem might be caused by the word "arguement" :-)

And thanks a lot for the excellent module 'better-sqlite3'.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions