New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Won't build on node 12 #111
Comments
I had a good stab at trying to fix this in d8eb02c (no guarantees any of it works - I was trying to fix the deprecation errors before trying to actually get it to work) but got stuck with utils.hpp: template<class T, class... Args>
v8::Local<v8::Object> new_external(Args&&... args) {
Nan::EscapableHandleScope scope;
v8::Handle<v8::Value> ext = Nan::New<v8::External>(new T(std::forward<Args>(args)...));
Nan::MaybeLocal<v8::Object> maybe_local = Nan::NewInstance(Nan::New(T::constructor)->GetFunction(), 1, &ext);
if (maybe_local.IsEmpty()) Nan::ThrowError("Could not create new Buffer instance");
return scope.Escape(maybe_local.ToLocalChecked()->ToObject());
}
Where might I get the context for |
…hould be dealt with.
Frustratingly I can't get rid of these repeated warnings, but nodejs/nan#878 suggests they're safe to ignore:
|
Now builds on all but node 4, but that was already broken:
|
Shifted to Ubuntu 20.04, so thought I'd get myself up to date with Node 12 (current LTS). Then remembered I had this problem before - node-osmium won't build on Node 12 because v8 has deprecated lots of non-maybe APIs.
Appreciate there are no binaries for Node 12 (#108), but it would be nice if it compiled.
The text was updated successfully, but these errors were encountered: