0

At present I am using v8 version below for my windows: com.eclipsesource.j2v8:j2v8_win32_x86_64:4.6.0.

I want to return Big integer but looks like this version does not support Big Int. return {'result' : BigInt('893800399029639267')}; This does not return anything.

Other options like below also does not work: const value = 893800399029639267n This gives error.

Kindly suggest, how can I return BigInt?

4

2 回答 2

2

BigInt 是在 6.7 中引入的,我的老兄。

看起来你在 4.6

https://v8.dev/blog/v8-release-67

于 2018-09-25T12:12:37.327 回答
0

我最近发现了一种名为javet的 J2V8 替代方案。我建议检查一下。它支持 BigInt,得到积极维护,并且与 node.js LTS 保持同步

于 2021-05-11T03:04:58.833 回答