Open atvise opened 5 years ago
Hi @atvise,
Thanks a lot for the your recent contributions! Excuse me, I really have no spare time to review and merge you pull-request at this time.
The Travis CI build could fail due to old V8 versions. So the pre-requisit will be release v8pp version 1.6 with minimum required V8 version 6.3. After that I think your pull-requests would be merged successfully.
Hi @pmed,
you'r welcome! No problem ;) If you have time again let me know!
Hi,
There is already exception handling in JS constructor function: https://github.com/pmed/v8pp/blob/master/v8pp/class.hpp#L69-L76 that translates std::exception
into v8::Exception
and returns it as the JS ctor function result.
I've added a couple of checks into the v8pp::class_
test case. These checks work as expected, handling both std::exception
, and v8::Exception
thrown from the create_X()
construction function.
Added try catch within the class wrapobject function to catch possible exceptions from the ctor function