Closed whoozle closed 8 years ago
Hi,
Which V8 version do you use? I have built and run successfully tests with V8 version 5.0.71.33 on OS X
I also replaced obsoleted v8::Handle
to v8::Local
and pushed this as a new https://github.com/pmed/v8pp/tree/local-handles branch. Please, try it.
v8 version: 3.32.7 I have to use old one, I have armv4 to support and it's impossible since 4.0+
In file included from v8pp/v8pp/function.hpp:16:0,
from v8pp/v8pp/module.hpp:15,
from src/pure/ui/Console.h:4,
from src/pure/ui/Isolate.cpp:2:
v8pp/v8pp/throw_ex.hpp:24:86: error: invalid conversion from ‘v8::Local<v8::Value> (*)(v8::Handle<v8::String>)’ to ‘v8::Local<v8::Value> (*)(v8::Local<v8::String>)’ [-fpermissive]
v8::Local<v8::Value> (*exception_ctor)(v8::Local<v8::String>) = v8::Exception::Error)
^
v8pp/v8pp/throw_ex.hpp:45:86: error: invalid conversion from ‘v8::Local<v8::Value> (*)(v8::Handle<v8::String>)’ to ‘v8::Local<v8::Value> (*)(v8::Local<v8::String>)’ [-fpermissive]
v8::Local<v8::Value> (*exception_ctor)(v8::Local<v8::String>) = v8::Exception::Error)
^
Hmm, support of such old version would be quite hard. At the current time I can't realize how to manage this.
Probably it maybe easier to change code on your site in the master
branch in file v8pp/convert.hpp
template<typename T>
struct is_wrapped_class<v8::Handle<T>, typename std::enable_if<
!std::is_same<v8::Handle<T>, v8::Local<T>>::value, int>::type> : std::false_type{};
to
template<typename T>
struct is_wrapped_class<v8::Handle<T>> : std::false_type {};
Fixed