first 2 args are swapped the docs: https://github.com/nodejs/node-addon-api/blob/cdb662506c001feed535d9d577f6c535826b8cf7/doc/bigint.md#L82 implementation: https://github.com/nodejs/node-addon-api/blob/9c9accfbbe8c27f969d569f78758a8c47837321b/napi.h#L388