diff --git a/settings.py b/settings.py index fd39b78b..0d7d5303 100644 --- a/settings.py +++ b/settings.py @@ -7,7 +7,7 @@ V8_HOME = os.environ.get("V8_HOME", os.path.join(STPYV8_HOME, "v8")) V8_GIT_URL = "https://chromium.googlesource.com/v8/v8.git" -V8_GIT_TAG_STABLE = "13.0.245.18" +V8_GIT_TAG_STABLE = "13.1.201.8" V8_GIT_TAG_MASTER = "master" V8_GIT_TAG = V8_GIT_TAG_STABLE DEPOT_GIT_URL = "https://chromium.googlesource.com/chromium/tools/depot_tools.git" diff --git a/src/Wrapper.cpp b/src/Wrapper.cpp index 1c06bc03..4cf4f6de 100644 --- a/src/Wrapper.cpp +++ b/src/Wrapper.cpp @@ -968,7 +968,7 @@ v8::Handle CPythonObject::WrapInternal(py::object obj) result = v8::Date::New(isolate->GetCurrentContext(), ((double) mktime(&ts)) * 1000 + ms / 1000).ToLocalChecked(); } - else if (PyCFunction_Check(obj.ptr()) || PyFunction_Check(obj.ptr()) || PyMethod_Check(obj.ptr()) || PyType_CheckExact(obj.ptr())) + else if (PyCFunction_Check(obj.ptr()) || PyFunction_Check(obj.ptr()) || PyMethod_Check(obj.ptr()) || PyType_Check(obj.ptr())) { v8::Handle func_tmpl = v8::FunctionTemplate::New(isolate); py::object *object = new py::object(obj);