pmed / v8pp

Bind C++ functions and classes into V8 JavaScript engine
http://pmed.github.io/v8pp/
Other
901 stars 121 forks source link

test.exe:c++ class test failed #197

Closed Eunsolfs closed 5 months ago

Eunsolfs commented 1 year ago

I downloaded release 2.1.0, and then configured the config.hpp file, and the compilation passed smoothly. But when I ran test.exe for functional testing, I encountered c++ class test failed

my Device: win10 x64 V8 comes from the nuget package: v8-v143, version 10.0.139.9

The information output by test.exe is as follows:

PS F:\VS_Project\C++\Lib\v8pp-2.1.0\bin\Release> .\test_Win32_Release.exe --run-tests
test_utility ok
test_context ok
test_convert ok
test_throw_ex ok
test_function ok
test_ptr_traits ok
test_call_v8 ok
test_call_from_v8 ok
test_module ok
test_class:4: Uncaught C++ exception
:4: Uncaught C++ exception
 ok
test_property ok
test_object ok
test_json ok

I'm sure I didn't modify any code except config.hpp and expect you to fix this in your busy schedule. Here is the link of my config.hpp code https://godbolt.org/z/KMx3b94G8