Re: [v8-dev] Creating isolate segfaults when no natives_blob.bin present

2016-01-05 Thread Zac Hansen
It just seems odd that there's no way to detect them being missing and throw an exception that actually gives some information about the problem or even regenerate the contents of the file at the cost of startup speed. --Zac On Tue, Jan 5, 2016 at 4:40 AM, 'Daniel Vogelheim' via v8-dev < v8-dev@g

Re: [v8-dev] Creating isolate segfaults when no natives_blob.bin present

2016-01-05 Thread Zac Hansen
ed by d8. You are > confusing it with the startup snapshot. > > Yang > > On Tue, Jan 5, 2016, 22:55 Zac Hansen wrote: > >> It just seems odd that there's no way to detect them being missing and >> throw an exception that actually gives some information about the problem &

Re: [v8-dev] Pre-development patch feasibility/acceptance question for making v8::Object::New take a prototype and property object like Object.create() does

2016-02-15 Thread Zac Hansen
Can you give me a hint or two of behaviors to look for for my testing? The warnings I'm seeing about the performance implications of changing the prototype on an existing object are wide ranging including things that one wouldn't normally think of. I'm scared that I'll test what I think I want to

Re: [v8-dev] Re: Any reason MaybeLocal doesn't have behavior similar to std::optional - operator bool/*/->

2018-03-05 Thread Zac Hansen
I can see where you are coming from even if I don't agree, but that doesn't seem to preclude adding the `explicit operator bool`, does it? Just that alone would get me 95% of what I want. I'd suggest adding it to maybe, as well, I think. --Zac On Mon, Mar 5, 2018 at 4:03 PM, Jakob Kummerow wr

Re: [v8-dev] Re: Any reason MaybeLocal doesn't have behavior similar to std::optional - operator bool/*/->

2018-03-06 Thread Zac Hansen
along the lines of: > >> >> Local<...> result; >> if (v8::JSON::Parse(...).ToLocal(&result)) { >> result->Set(...); >> } > > > Would that be succinct enough for you, or is it the lack of type deduction > of result that is the problem?