[v8-users] Track script execution start and stop.

2015-10-18 Thread Bogdan Padalko
Hi, I'm embedding v8 and have to limit max time that arbitrary script execution may take. As to script running complete event, it is more or less clear - v8::Isolate::AddCallCompletedCallback() will do the job, but as to catching start I'm stuck a bit. There is v8::Isolate::SetEventLogger()

Re: [v8-users] Does changed timezone notification still required in latest v8?

2016-02-01 Thread Bogdan Padalko
Thanks for the clarification! -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an

[v8-users] Does changed timezone notification still required in latest v8?

2016-01-29 Thread Bogdan Padalko
Hi, after upgrading to latest v8 from master (say, v4.10.43) on linux (ubuntu 15.10) and os x (10.11.3) changing timezone with putennv("TZ=") (http://man7.org/linux/man-pages/man3/putenv.3.html) new timezone affects v8 runtime without calling

[v8-users] How to create generator function or object from C/C++ code?

2016-05-19 Thread Bogdan Padalko
Hi, is it possible to create generator function and/or generator object from v8 API? If no, are there any plans to do that? I do v8 engine integration and at this time I have to wrap raw functions into js generator function. P.S.: I would also ask the same question about async functions, but

[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] Undefined reference to v8::platform::NewDefaultPlatform

2017-12-30 Thread Bogdan Padalko
, and there was no other changes to sources except of using v8 6.5.116 and using NewDefaultPlatform. Bare 6.5.116 with CreateDefaultPlatform works fine. On Saturday, December 30, 2017 at 7:28:25 PM UTC+2, Ben Noordhuis wrote: > > On Sat, Dec 30, 2017 at 5:54 PM, Bogdan Padalko <zaq17...@

[v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2017-12-30 Thread Bogdan Padalko
Hi! I'm trying to adapt changes from https://github.com/v8/v8/commit/ffee558e14e28fc8b1f9a3c10ea3615e0d686c7b to replace CreateDefaultPlatform with NewDefaultPlatform calls, however, for some reason I'm getting /home/vagrant/php-v8/scripts/test_v8/hello_world.cpp:21: undefined reference to

[v8-users] Re: how to install php-v8 version 0.2.1 on centos 7

2017-12-30 Thread Bogdan Padalko
Hi, php-v8 author is here (I don't look into this mailing often last time). Currently, php-v8 relies on v8 library provided by user or system (note what version is required). For Ubuntu and macOS I build v8 and make it publicly available. Unfortunately, I do not build v8 for Centos yet and

[v8-users] Double Proxy resolve/reject causes segfault

2018-02-22 Thread Bogdan Padalko
Hi! While working on upgrading php-v8 extension from 6.5.144 to 6.6.275 I find a strange issue: when promise in non-pending stage get resolved/rejected, application fails with segfault. While it's an edge case, it still possible in userland and luckily it was covered by php-v8 unit tests. As

Re: [v8-users] Double Proxy resolve/reject causes segfault

2018-02-24 Thread Bogdan Padalko
Thanks! The issue is fixed. On Friday, February 23, 2018 at 1:09:11 AM UTC+2, Sathya Gunasekaran wrote: > > Thanks for the report. Fix out for review: > https://chromium-review.googlesource.com/c/v8/v8/+/932968 > > On Thu, Feb 22, 2018 at 12:17 PM, Bogdan Padalko <zaq17...@gm

Re: [v8-users] Undefined reference to v8::platform::NewDefaultPlatform

2018-01-02 Thread Bogdan Padalko
> It looks like the first symbol was from libc++ (the __1 gives it away) and > the second was most likely from libstdc++. <== just a guess but pretty > consistent with stuff I've seen before. > > On Monday, January 1, 2018 at 10:57:12 AM UTC-8, Bogdan Padalko wrote: >> &