Open yonatan-mitmit opened 4 years ago
The tests above fail on old versions of V8. (I'm testing against 7.8.279.23) Without these changes, the code doesn't compile on latest. What's the version you want supported?
Hi @yonatan-mitmit
Thank you very much for the contribution! I will review and merge it.
I would prefer to stay with the elder V8 version, as possible. Currently Travis CI runs tests for different V8 versions starting from 6.3, in development I use 7.5.
It seems that V8 has some changes in its API, so the movement to the newer V8 is inevitable. In this case a minimal V8 version should be a reasonable value, e.g. the same as used in Node.js LTS version.
Best regards Pavel
Added ifdefs for the V8 version. NewFromUtf8 that returns a Local
Hi @yonatan-mitmit,
thanks for the pointing out the issue with v8::String::NewFromUtf8
in v8pp::throw_ex()
. It turned out that such an overloaded function returning MaybeLocal
exists for a long time.
I've fixed this in context of issue #131, it works with V8 version 7.9. I need to add the newer version to Travis build matrix.
Thanks the fix. Can you see re the rest of the PR (Support member's access operator as properties?)
Thanks!
Hi @yonatan-mitmit
Can you see re the rest of the PR (Support member's access operator as properties?)
Sorry for the review delay, I had no spare time. The proposed changes look good 👍
Could you please also add a test case, in order to demonstrate how such a property would be bind in C++ and used in JavaScript?
Best regards, Pavel
The PR contains the following changes:
P.S. Thanks for the awesome library