Closed ztzven closed 5 years ago
Argh, same. Have you tried cloning and building locally?
@ztzven I've fixed this :)!
AudioEngine.cpp
, void Audio::AudioEngine::NewInstance
, void Audio::AudioEngine::NewInstance(const Nan::FunctionCallbackInfo<v8::Value>& info) {
Nan::HandleScope scope;
//HandleScope scope;
unsigned argc = info.Length();
if( argc > 2 )
argc = 2;
Handle<Value>* argv = new Handle<Value>[argc];
argv[0] = info[0];
if( argc > 1 )
argv[1] = info[1];
v8::Local<v8::Function> cons = Nan::New(constructor); // -> This is new
//Local<Object> instance = constructor->NewInstance( argc, argv );
//Local<Object> instance = constructor->NewInstance(argc, argv);
info.GetReturnValue().Set(Nan::NewInstance(cons, argc, argv).ToLocalChecked()); // Also new!
} // end AudioEngine::NewInstance()
npm install
and you are good to go!Thanks for the patch!! I'll give it a go when home later. However... any idea why the build error made it into a release?
Ahh.. I see, it is a node v10 constraint :)
I get the error when trying to install (and build)