Skip to content

[RFC]: Add napi/create-uint64 and napi/create-int64 #10922

@DhruvArvindSingh

Description

@DhruvArvindSingh

Description

This RFC proposes

To add napi/create-uint64 and napi/create-int64

I see there are TODO's in packages:
blas/base/icamax
blas/base/idamax
and many more packages

TODO message

// TODO: revisit once we support 64-bit integers as return values and 64 integers more generally in JavaScript

When i dig further it seems we can implement the following now using the following napi function:

napi_create_bigint_uint64
napi_create_bigint_int64

These funcitons were added in the N-API Version: 6

Related Issues

Related issues # , # , and # .

Questions

No.

Other

No.

Checklist

  • I have read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.
  • The issue name begins with RFC:.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AcceptedRFC feature request which has been accepted.CIssue involves or relates to C.FeatureIssue or pull request for adding a new feature.Native AddonsIssue involves or relates to Node.js native add-ons.RFCRequest for comments. Feature requests and proposed changes.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.priority: NormalNormal priority concern or feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions