Re: [v8-users] Is it safe to consume v8::Private methods?

2017-07-14 Thread Jakob Kummerow
Gautham, I think you might be misunderstanding how the Maybe<> API is supposed to be used. When used correctly, it is absolutely safe and will never crash. - Maybe::FromJust() / MaybeLocal::ToLocalChecked() are intended for when you know for sure that the Maybe / MaybeLocal is not empty. Usually,

[v8-users] Intent to ship: allowing invalid escape sequences in tagged template literals

2017-07-14 Thread no spoon
Contact email: bak...@gmail.com Spec: https://tc39.github.io/proposal-template-literal-revision/ This feature is stage 4 and will be included in the 2018 edition of ECMA-262. Summary: ES6 template literals forbid certain escape sequences, like `\u{not hex}`. But tagged templates expose to user

[v8-users] How to call js function from C++ with default recv value?

2017-07-14 Thread Bogdan Padalko
Hi, I'm trying to deal with a case when user pass Function callback to C++ and it needs to be invoked from that C++ respecting this value, So Function::Call() does not fulfill this requirement. Are there any change to achieve that without creating new Script and run it within a new Context

Re: [v8-users] Is it safe to consume v8::Private methods?

2017-07-14 Thread Ben Noordhuis
On Fri, Jul 14, 2017 at 5:52 AM, Gautham B A wrote: > No, .ToLocalChecked() is called by my code, not from V8. > > I would like to know if the APIs under v8::Private namespace has been battle > tested. Node.js uses them and I'm fairly sure Chromium does too, so yes,