Re: [v8-users] BigInt from String?

2018-09-15 Thread Jakob Kummerow
To create arbitrary BigInts via the C++ API, use BigInt::NewFromWords. An alternative, as you suggest, is to parse the string as source, because "BigInt strings with 'n' suffixes" are BigInt literals. Instead of "eval", the API functions to do that are Script::Compile and Script::Run. Look at

Re: [v8-users] BigInt from String?

2018-09-15 Thread J Decker
On Sat, Sep 15, 2018 at 8:41 PM J Decker wrote: > I was implementing a parser that includes BigInt strings with 'n' > suffixes... > I tried to create a BigInt::New( isolate, ... and then found the only > constructor takes an int64; which isn't a very big int. > > howto bigint from string? >

[v8-users] BigInt from String?

2018-09-15 Thread J Decker
I was implementing a parser that includes BigInt strings with 'n' suffixes... I tried to create a BigInt::New( isolate, ... and then found the only constructor takes an int64; which isn't a very big int. howto bigint from string? -- -- v8-users mailing list v8-users@googlegroups.com

Re: [v8-users] How do compile the code coverage for V8?

2018-09-15 Thread hikai . bep
So I solved it but environment is Ubuntu 18.04 with gcc-7.3.0. However, always occurred warnings. My CLI is here: gn args test/ --args='target_cpu="x64" v8_target_cpu="arm64" is_debug=true v8_code_coverage=true is_clang=false v8_optimized_debug=false treat_warnings_as_errors=false' And

Re: [v8-users] Arraybuffer

2018-09-15 Thread dan Med
That’s all. On Fri, 14 Sep 2018 at 21:53, dan Med wrote: > I don’t understand how that code could be helpful to me.. > > On Fri, 14 Sep 2018 at 21:51, dan Med wrote: > >> Technica question, when Arraybufferbuilder:append will be called ? >> >> On Fri, 14 Sep 2018 at 01:14, Peter Schow wrote: