This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
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 |
matburnham
added a commit
to matburnham/node-osmium
that referenced
this issue
Jul 28, 2020
…hould be dealt with.
Merged
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:
|
matburnham
added a commit
to matburnham/node-osmium
that referenced
this issue
Jul 28, 2020
joto
added a commit
that referenced
this issue
Jan 9, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: