We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This seems to be an issue with contextify, but that project does not appear to be maintained any more. Is there an alternative to contextify?
$ npm install --save markdown-it-html5-embed > contextify@0.1.15 install /home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify > node-gyp rebuild make: Entering directory '/home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify/build' CXX(target) Release/obj.target/contextify/src/contextify.o ../src/contextify.cc: In static member function ‘static void ContextifyContext::Init(v8::Local<v8::Object>)’: ../src/contextify.cc:52:52: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 52 | target->Set(className, ljsTmpl->GetFunction()); | ~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ 6126 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided ../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyContext::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/contextify.cc:62:73: error: no matching function for call to ‘v8::Value::ToObject()’ 62 | ContextifyContext* ctx = new ContextifyContext(info[0]->ToObject()); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyContext::Run(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/contextify.cc:77:47: error: no matching function for call to ‘v8::Value::ToString()’ 77 | Local<String> code = info[0]->ToString(); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ 2668 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’ 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:83:50: error: no matching function for call to ‘v8::Value::ToString()’ 83 | ScriptOrigin origin(info[1]->ToString()); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ 2668 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’ 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc: In static member function ‘static void ContextWrap::Init()’: ../src/contextify.cc:126:44: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 126 | constructor.Reset(tmpl->GetFunction()); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ 6126 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided ../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’: ../src/contextify.cc:131:67: error: no matching function for call to ‘v8::Function::NewInstance()’ 131 | Local<Object> wrapper = Nan::New(constructor)->NewInstance(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:4281:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’ 4281 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:4281:44: note: candidate expects 3 arguments, 0 provided /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:4284:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’ 4284 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:4284:44: note: candidate expects 1 argument, 0 provided ../src/contextify.cc:140:34: warning: ‘void v8::FunctionTemplate::SetHiddenPrototype(bool)’ is deprecated: This feature is incompatible with ES6+. [-Wdeprecated-declarations] 140 | ftmpl->SetHiddenPrototype(true); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6201:22: note: declared here 6201 | void SetHiddenPrototype(bool value)); | ^~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’? 150 | otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck, | ^~~~~~~~~~~~~~~~~~~~~~~ | SetAccessCheckCallback ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’: ../src/contextify.cc:176:51: error: no matching function for call to ‘v8::Value::ToObject()’ 176 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:182:71: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’ 182 | Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3825:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’ 3825 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | ^~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3825:43: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertySetter(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&)’: ../src/contextify.cc:192:51: error: no matching function for call to ‘v8::Value::ToObject()’ 192 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:198:36: warning: ‘bool v8::Object::Set(v8::Local<v8::Value>, v8::Local<v8::Value>)’ is deprecated: Use maybe version [-Wdeprecated-declarations] 198 | Nan::New(ctx->sandbox)->Set(property, value); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3499:22: note: declared here 3499 | bool Set(Local<Value> key, Local<Value> value)); | ^~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’: ../src/contextify.cc:203:51: error: no matching function for call to ‘v8::Value::ToObject()’ 203 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:209:58: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’ 209 | if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3825:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’ 3825 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | ^~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3825:43: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc:210:62: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’ 210 | !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3825:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’ 3825 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | ^~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3825:43: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyDeleter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&)’: ../src/contextify.cc:218:51: error: no matching function for call to ‘v8::Value::ToObject()’ 218 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:224:54: error: no matching function for call to ‘v8::Object::Delete(v8::Local<v8::String>&)’ 224 | bool success = Nan::New(ctx->sandbox)->Delete(property); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3593:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Delete(v8::Local<v8::Context>, v8::Local<v8::Value>)’ 3593 | V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context, | ^~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3593:37: note: candidate expects 2 arguments, 1 provided /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3598:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Delete(v8::Local<v8::Context>, uint32_t)’ 3598 | V8_WARN_UNUSED_RESULT Maybe<bool> Delete(Local<Context> context, | ^~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3598:37: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyEnumerator(const Nan::PropertyCallbackInfo<v8::Array>&)’: ../src/contextify.cc:229:51: error: no matching function for call to ‘v8::Value::ToObject()’ 229 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:237:75: error: no matching function for call to ‘v8::Object::GetPropertyNames()’ 237 | info.GetReturnValue().Set(Nan::New(ctx->sandbox)->GetPropertyNames()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3663:43: note: candidate: ‘v8::MaybeLocal<v8::Array> v8::Object::GetPropertyNames(v8::Local<v8::Context>)’ 3663 | V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames( | ^~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3663:43: note: candidate expects 1 argument, 0 provided /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3665:43: note: candidate: ‘v8::MaybeLocal<v8::Array> v8::Object::GetPropertyNames(v8::Local<v8::Context>, v8::KeyCollectionMode, v8::PropertyFilter, v8::IndexFilter, v8::KeyConversionMode)’ 3665 | V8_WARN_UNUSED_RESULT MaybeLocal<Array> GetPropertyNames( | ^~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:3665:43: note: candidate expects 5 arguments, 0 provided ../src/contextify.cc: In static member function ‘static void ContextifyScript::Init(v8::Local<v8::Object>)’: ../src/contextify.cc:277:56: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 277 | target->Set(className, lscriptTmpl->GetFunction()); | ~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6126:46: note: candidate: ‘v8::MaybeLocal<v8::Function> v8::FunctionTemplate::GetFunction(v8::Local<v8::Context>)’ 6126 | V8_WARN_UNUSED_RESULT MaybeLocal<Function> GetFunction( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:6126:46: note: candidate expects 1 argument, 0 provided ../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyScript::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/contextify.cc:286:47: error: no matching function for call to ‘v8::Value::ToString()’ 286 | Local<String> code = info[0]->ToString(); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ 2668 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’ 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:291:51: error: no matching function for call to ‘v8::Value::ToString()’ 291 | ? info[1]->ToString() | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’ 2668 | V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate: ‘v8::Local<v8::String> v8::Value::ToString(v8::Isolate*) const’ 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided 2684 | Local<String> ToString(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyScript::RunInContext(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/contextify.cc:319:61: error: no matching function for call to ‘v8::Value::ToObject()’ 319 | if (!ContextifyContext::InstanceOf(info[0]->ToObject())) | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ ../src/contextify.cc:322:94: error: no matching function for call to ‘v8::Value::ToObject()’ 322 | ContextifyContext* ctx = Nan::ObjectWrap::Unwrap<ContextifyContext>(info[0]->ToObject()); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’ 2672 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject( | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2672:44: note: candidate expects 1 argument, 0 provided In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/v8-internal.h:14, from /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:27, from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate: ‘v8::Local<v8::Object> v8::Value::ToObject(v8::Isolate*) const’ 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:2686:31: note: candidate expects 1 argument, 0 provided 2686 | Local<Object> ToObject(Isolate* isolate) const); | ^~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ 328 | declarator __attribute__((deprecated(message))) | ^~~~~~~~~~ In file included from ../src/contextify.cc:1: ../src/contextify.cc: At global scope: /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:727:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] 727 | (node::addon_register_func) (regfunc), \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:761:3: note: in expansion of macro ‘NODE_MODULE_X’ 761 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/contextify.cc:361:5: note: in expansion of macro ‘NODE_MODULE’ 361 | NODE_MODULE(contextify, init) | ^~~~~~~~~~~ In file included from ../../nan/nan.h:2790, from ../src/contextify.cc:3: ../../nan/nan_weak.h: In instantiation of ‘Nan::WeakCallbackInfo<P>::WeakCallbackInfo(Nan::Persistent<v8::Value>*, Nan::WeakCallbackInfo<P>::Callback, void*, void*, void*) [with T = ContextWrap; Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&)]’: ../../nan/nan_weak.h:264:12: required from ‘void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]’ ../src/contextify.cc:136:54: required from here ../../nan/nan_weak.h:58:16: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class v8::Persistent<v8::Value>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 58 | std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/12.19.0/include/node/node.h:67, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/12.19.0/include/node/v8.h:668:35: note: ‘class v8::Persistent<v8::Value>’ declared here 668 | template <class T, class M> class Persistent : public PersistentBase<T> { | ^~~~~~~~~~ make: *** [contextify.target.mk:111: Release/obj.target/contextify/src/contextify.o] Error 1 make: Leaving directory '/home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/ben/.nvm/versions/node/v12.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:314:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 5.12.8-arch1-1 gyp ERR! command "/home/ben/.nvm/versions/node/v12.19.0/bin/node" "/home/ben/.nvm/versions/node/v12.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify gyp ERR! node -v v12.19.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok + markdown-it-html5-embed@1.0.0 added 6 packages from 8 contributors, updated 1 package and audited 402 packages in 7.202s 35 packages are looking for funding run `npm fund` for details found 9 vulnerabilities (3 low, 5 moderate, 1 high) run `npm audit fix` to fix them, or `npm audit` for details ben@ben-laptop [javascript-curriculum] javascript-web-games $ nvm list v0.12.18 v8.17.0 v10.20.1 -> v12.19.0 system default -> v12 (-> v12.19.0) sed: -e expression #1, char 248: unterminated address regex node -> stable (-> N/A) (default) sed: -e expression #1, char 248: unterminated address regex stable -> [01;31mv10.20 (-> N/A) (default) sed: -e expression #1, char 248: unterminated address regex unstable -> [01;31mv12.19 (-> N/A) (default) iojs -> N/A (default) lts/* -> lts/erbium (-> v12.19.0) lts/argon -> v4.9.1 (-> N/A) lts/boron -> v6.17.1 (-> N/A) lts/carbon -> v8.17.0 lts/dubnium -> v10.22.1 (-> N/A) lts/erbium -> v12.19.0 ben@ben-laptop [javascript-curriculum] javascript-web-games $ nvm use system Now using system version of node: v16.2.0 (npm v7.15.1) ben@ben-laptop [javascript-curriculum] javascript-web-games $ npm install --save markdown-it-html5-embed npm notice npm notice New minor version of npm available! 7.15.1 -> 7.18.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.18.1 npm notice Run npm install -g npm@7.18.1 to update! npm notice npm ERR! semver.simplifyRange is not a function npm ERR! A complete log of this run can be found in: npm ERR! /home/ben/.npm/_logs/2021-06-23T22_32_00_521Z-debug.log ben@ben-laptop [javascript-curriculum] javascript-web-games $ nvm use 10 Now using node v10.20.1 (npm v6.14.4) ben@ben-laptop [javascript-curriculum] javascript-web-games $ npm install --save markdown-it-html5-embed > contextify@0.1.15 install /home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify > node-gyp rebuild make: Entering directory '/home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify/build' CXX(target) Release/obj.target/contextify/src/contextify.o ../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyContext::New(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/contextify.cc:62:73: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 62 | ContextifyContext* ctx = new ContextifyContext(info[0]->ToObject()); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’: ../src/contextify.cc:131:67: error: no matching function for call to ‘v8::Function::NewInstance()’ 131 | Local<Object> wrapper = Nan::New(constructor)->NewInstance(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3993:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>, int, v8::Local<v8::Value>*) const’ 3993 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3993:44: note: candidate expects 3 arguments, 0 provided /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3996:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’ 3996 | V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | ^~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3996:44: note: candidate expects 1 argument, 0 provided ../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’; did you mean ‘SetAccessCheckCallback’? 150 | otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck, | ^~~~~~~~~~~~~~~~~~~~~~~ | SetAccessCheckCallback ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’: ../src/contextify.cc:176:51: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 176 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc:182:71: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’ 182 | Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3562:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’ 3562 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | ^~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3562:43: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertySetter(v8::Local<v8::String>, v8::Local<v8::Value>, const Nan::PropertyCallbackInfo<v8::Value>&)’: ../src/contextify.cc:192:51: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 192 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’: ../src/contextify.cc:203:51: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 203 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc:209:58: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’ 209 | if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() || | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3562:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’ 3562 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | ^~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3562:43: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc:210:62: error: no matching function for call to ‘v8::Object::GetRealNamedProperty(v8::Local<v8::String>&)’ 210 | !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3562:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::Context>, v8::Local<v8::Name>)’ 3562 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> GetRealNamedProperty( | ^~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:3562:43: note: candidate expects 2 arguments, 1 provided ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyDeleter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Boolean>&)’: ../src/contextify.cc:218:51: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 218 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyEnumerator(const Nan::PropertyCallbackInfo<v8::Array>&)’: ../src/contextify.cc:229:51: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 229 | Local<Object> data = info.Data()->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE ContextifyScript::RunInContext(Nan::NAN_METHOD_ARGS_TYPE)’: ../src/contextify.cc:319:61: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 319 | if (!ContextifyContext::InstanceOf(info[0]->ToObject())) | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ ../src/contextify.cc:322:94: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations] 322 | ContextifyContext* ctx = Nan::ObjectWrap::Unwrap<ContextifyContext>(info[0]->ToObject()); | ~~~~~~~~~~~~~~~~~^~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:10046:15: note: declared here 10046 | Local<Object> Value::ToObject() const { | ^~~~~ In file included from ../src/contextify.cc:1: ../src/contextify.cc: At global scope: /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:573:7: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] 573 | (node::addon_register_func) (regfunc), \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’ 607 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/contextify.cc:361:5: note: in expansion of macro ‘NODE_MODULE’ 361 | NODE_MODULE(contextify, init) | ^~~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: /home/ben/.cache/node-gyp/10.20.1/include/node/node_object_wrap.h:84:25: required from here /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] 9502 | reinterpret_cast<Callback>(callback), type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’: ../../nan/nan_object_wrap.h:64:57: required from here /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] In file included from ../../nan/nan.h:2790, from ../src/contextify.cc:3: ../../nan/nan_weak.h: In instantiation of ‘Nan::WeakCallbackInfo<P>::WeakCallbackInfo(Nan::Persistent<v8::Value>*, Nan::WeakCallbackInfo<P>::Callback, void*, void*, void*) [with T = ContextWrap; Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&)]’: ../../nan/nan_weak.h:264:12: required from ‘void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]’ ../src/contextify.cc:136:54: required from here ../../nan/nan_weak.h:58:16: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class v8::Persistent<v8::Value>’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 58 | std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>)); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/ben/.cache/node-gyp/10.20.1/include/node/node.h:63, from ../src/contextify.cc:1: /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:685:35: note: ‘class v8::Persistent<v8::Value>’ declared here 685 | template <class T, class M> class Persistent : public PersistentBase<T> { | ^~~~~~~~~~ /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::WeakCallbackInfo<ContextWrap>; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >&)]’: ../../nan/nan_weak.h:268:35: required from ‘void Nan::Persistent<T, M>::SetWeak(P*, typename Nan::WeakCallbackInfo<P>::Callback, Nan::WeakCallbackType) [with P = ContextWrap; T = v8::Object; M = v8::NonCopyablePersistentTraits<v8::Object>; typename Nan::WeakCallbackInfo<P>::Callback = void (*)(const Nan::WeakCallbackInfo<ContextWrap>&); Nan::WeakCallbackType = v8::WeakCallbackType]’ ../src/contextify.cc:136:54: required from here /home/ben/.cache/node-gyp/10.20.1/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::WeakCallbackInfo<ContextWrap> >&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] 9502 | reinterpret_cast<Callback>(callback), type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [contextify.target.mk:103: Release/obj.target/contextify/src/contextify.o] Error 1 make: Leaving directory '/home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/ben/.nvm/versions/node/v10.20.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:191:23) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12) gyp ERR! System Linux 5.12.8-arch1-1 gyp ERR! command "/home/ben/.nvm/versions/node/v10.20.1/bin/node" "/home/ben/.nvm/versions/node/v10.20.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ben/Projects/javascript-curriculum/javascript-web-games/node_modules/contextify gyp ERR! node -v v10.20.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok + markdown-it-html5-embed@1.0.0 updated 3 packages and audited 402 packages in 50.433s 35 packages are looking for funding run `npm fund` for details found 9 vulnerabilities (3 low, 5 moderate, 1 high) run `npm audit fix` to fix them, or `npm audit` for details
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This seems to be an issue with contextify, but that project does not appear to be maintained any more. Is there an alternative to contextify?
The text was updated successfully, but these errors were encountered: