gyp info it worked if it ends with ok gyp info using node-gyp@10.1.0 gyp info using node@22.0.0 | linux | x64 gyp info find Python using Python version 3.10.12 found at "/usr/bin/python3" gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/root/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/var/www/html/wp-content/themes/solace-theme/node_modules/uws/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.cache/node-gyp/22.0.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/22.0.0', gyp info spawn args '-Dnode_gyp_dir=/root/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/22.0.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/var/www/html/wp-content/themes/solace-theme/node_modules/uws', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/var/www/html/wp-content/themes/solace-theme/node_modules/uws/build' CXX(target) Release/obj.target/uws/src/Extensions.o CXX(target) Release/obj.target/uws/src/Group.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/WebSocketProtocol.h:5, from ../src/WebSocket.h:4, from ../src/Group.h:4, from ../src/Group.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/Networking.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Networking.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/Hub.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/WebSocketProtocol.h:5, from ../src/WebSocket.h:4, from ../src/Group.h:4, from ../src/Hub.h:4, from ../src/Hub.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/Node.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Socket.h:4, from ../src/Node.h:4, from ../src/Node.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/WebSocket.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/WebSocketProtocol.h:5, from ../src/WebSocket.h:4, from ../src/WebSocket.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/HTTPSocket.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Socket.h:4, from ../src/HTTPSocket.h:4, from ../src/HTTPSocket.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/Socket.o In file included from ../src/Backend.h:9, from ../src/Networking.h:69, from ../src/Socket.h:4, from ../src/Socket.cpp:1: ../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/Libuv.h: In lambda function: ../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ CXX(target) Release/obj.target/uws/src/addon.o In file included from ../src/../src/Backend.h:9, from ../src/../src/Networking.h:69, from ../src/../src/WebSocketProtocol.h:5, from ../src/../src/WebSocket.h:4, from ../src/../src/Group.h:4, from ../src/../src/Hub.h:4, from ../src/../src/uWS.h:4, from ../src/addon.cpp:1: ../src/../src/Libuv.h: In member function ‘void uS::Poll::close(uS::Loop*, void (*)(uS::Poll*))’: ../src/../src/Libuv.h:168:20: warning: cast between incompatible function types from ‘void (*)(uS::Poll*)’ to ‘void (*)(uS::Poll*, int, int)’ [-Wcast-function-type] 168 | this->cb = (void(*)(Poll *, int, int)) cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/../src/Libuv.h: In lambda function: ../src/../src/Libuv.h:171:34: warning: cast between incompatible function types from ‘void (*)(uS::Poll*, int, int)’ to ‘void (*)(uS::Poll*)’ [-Wcast-function-type] 171 | void (*cb)(Poll *) = (void(*)(Poll *)) poll->cb; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-handle-base.h:8, from /root/.cache/node-gyp/22.0.0/include/node/v8-local-handle.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:12, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h: In static member function ‘static constexpr int v8::internal::SmiTagging<4>::SmiToInt(v8::internal::Address)’: /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:89:3: error: body of ‘constexpr’ function ‘static constexpr int v8::internal::SmiTagging<4>::SmiToInt(v8::internal::Address)’ not a return-statement 89 | } | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h: In static member function ‘static constexpr int v8::internal::SmiTagging<8>::SmiToInt(v8::internal::Address)’: /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:114:3: error: body of ‘constexpr’ function ‘static constexpr int v8::internal::SmiTagging<8>::SmiToInt(v8::internal::Address)’ not a return-statement 114 | } | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’: /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1093:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 1093 | !std::is_same>::value>::Perform(data); | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1093:38: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 1093 | !std::is_same>::value>::Perform(data); | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1093:50: error: template argument 2 is invalid 1093 | !std::is_same>::value>::Perform(data); | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1093:63: error: ‘::Perform’ has not been declared 1093 | !std::is_same>::value>::Perform(data); | ^~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h: At global scope: /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1159:13: error: ‘is_void_v’ is not a member of ‘std’; did you mean ‘is_void’? 1159 | !std::is_void_v || | ^~~~~~~~~ | is_void /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1159:34: error: expected primary-expression before ‘>’ token 1159 | !std::is_void_v || | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1159:22: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] 1159 | !std::is_void_v || | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1159:36: error: expected primary-expression before ‘||’ token 1159 | !std::is_void_v || | ^~ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1160:13: error: ‘is_convertible_v’ is not a member of ‘std’; did you mean ‘is_convertible’? 1160 | (std::is_convertible_v::pointer, | ^~~~~~~~~~~~~~~~ | is_convertible /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1160:78: error: expected ‘(’ before ‘,’ token 1160 | (std::is_convertible_v::pointer, | ^ | ( /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1161:41: error: expected primary-expression before ‘*’ token 1161 | ElementType*> && | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1161:42: error: expected primary-expression before ‘>’ token 1161 | ElementType*> && | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1162:8: error: label ‘std’ referenced outside of any function 1162 | std::is_convertible_v::reference, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1162:11: error: expected ‘)’ before ‘::’ token 1162 | std::is_convertible_v::reference, | ^~ | ) /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1160:7: note: to match this ‘(’ 1160 | (std::is_convertible_v::pointer, | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1163:45: error: expected ‘,’ before ‘;’ token 1163 | ElementType&>)); | ^ | , /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1163:45: error: expected string-literal before ‘;’ token /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1163:45: error: expected ‘)’ before ‘;’ token 1163 | ElementType&>)); | ^ | ) /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1158:16: note: to match this ‘(’ 1158 | static_assert( | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1170:12: error: ‘conditional_t’ in namespace ‘std’ does not name a template type; did you mean ‘conditional’? 1170 | std::conditional_t, | ^~~~~~~~~~~~~ | conditional /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1174:12: error: ‘conditional_t’ in namespace ‘std’ does not name a template type; did you mean ‘conditional’? 1174 | std::conditional_t, | ^~~~~~~~~~~~~ | conditional /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1178:12: error: ‘conditional_t’ in namespace ‘std’ does not name a template type; did you mean ‘conditional’? 1178 | std::conditional_t, | ^~~~~~~~~~~~~ | conditional /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1186:18: error: ‘std::enable_if_t’ has not been declared 1186 | std::enable_if_t, | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1186:29: error: expected ‘>’ before ‘<’ token 1186 | std::enable_if_t, | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1192:13: error: ‘reference’ does not name a type 1192 | constexpr reference operator*() const noexcept { return *it_; } | ^~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1193:13: error: ‘pointer’ does not name a type 1193 | constexpr pointer operator->() const noexcept { return it_.operator->(); } | ^~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-internal.h:1230:13: error: ‘reference’ does not name a type 1230 | constexpr reference operator[](difference_type n) const noexcept { | ^~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-maybe.h:106:27: error: ‘std::enable_if_t’ has not been declared 106 | template >*> | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-maybe.h:106:38: error: expected ‘>’ before ‘<’ token 106 | template >*> | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-maybe.h:123:25: error: ‘std::enable_if_t’ has not been declared 123 | template >* = nullptr> | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-maybe.h:123:36: error: expected ‘>’ before ‘<’ token 123 | template >* = nullptr> | ^ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-script.h:19, from /root/.cache/node-gyp/22.0.0/include/node/v8-debug.h:10, from /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:18, from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:35:25: warning: variable templates only available with ‘-std=c++14’ or ‘-std=gnu++14’ 35 | static constexpr bool is_array_convertible_v = | ^~~~~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:46:12: error: ‘void_t’ is not a member of ‘std’ 46 | std::void_t< | ^~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:46:12: note: ‘std::void_t’ is only available from C++17 onwards /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:46:12: error: ‘void_t’ is not a member of ‘std’ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:46:12: note: ‘std::void_t’ is only available from C++17 onwards /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:49:37: error: ‘remove_reference_t’ is not a member of ‘std’; did you mean ‘remove_reference’? 49 | is_array_convertible>, | ^~~~~~~~~~~~~~~~~~ | remove_reference /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:49:37: error: ‘remove_reference_t’ is not a member of ‘std’; did you mean ‘remove_reference’? 49 | is_array_convertible>, | ^~~~~~~~~~~~~~~~~~ | remove_reference /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:49:75: error: wrong number of template arguments (1, should be 2) 49 | is_array_convertible>, | ^~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:33:9: note: provided for ‘template template using is_array_convertible = std::is_convertible’ 33 | using is_array_convertible = std::is_convertible; | ^~~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:50:32: error: wrong number of template arguments (4, should be at least 1) 50 | T>>> : std::true_type {}; | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:42:10: note: provided for ‘template template struct v8::MemorySpan::is_compatible_iterator’ 42 | struct is_compatible_iterator : std::false_type {}; | ^~~~~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:50:33: error: expected unqualified-id before ‘>’ token 50 | T>>> : std::true_type {}; | ^~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:52:25: warning: variable templates only available with ‘-std=c++14’ or ‘-std=gnu++14’ 52 | static constexpr bool is_compatible_iterator_v = | ^~~~~~~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:61:29: error: ‘void_t’ in namespace ‘std’ does not name a template type 61 | typename = std::void_t().operator->())>> | ^~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:61:24: note: ‘std::void_t’ is only available from C++17 onwards 61 | typename = std::void_t().operator->())>> | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:61:35: error: expected ‘>’ before ‘<’ token 61 | typename = std::void_t().operator->())>> | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:62:20: error: ‘to_address’ function uses ‘auto’ type specifier without trailing return type 62 | static constexpr auto to_address(It it) noexcept { | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:62:20: note: deduced return type only available with ‘-std=c++14’ or ‘-std=gnu++14’ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:77:18: error: ‘std::enable_if_t’ has not been declared 77 | std::enable_if_t, bool> = true> | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:77:29: error: expected ‘>’ before ‘<’ token 77 | std::enable_if_t, bool> = true> | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:84:18: error: ‘std::enable_if_t’ has not been declared 84 | std::enable_if_t && | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:84:29: error: expected ‘>’ before ‘<’ token 84 | std::enable_if_t && | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:98:18: error: ‘std::enable_if_t’ has not been declared 98 | std::enable_if_t, bool> = true> | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:98:29: error: expected ‘>’ before ‘<’ token 98 | std::enable_if_t, bool> = true> | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:105:18: error: ‘std::enable_if_t’ has not been declared 105 | std::enable_if_t, bool> = true> | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:105:29: error: expected ‘>’ before ‘<’ token 105 | std::enable_if_t, bool> = true> | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:174:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 174 | constexpr std::array, N> to_array_lvalue_impl( | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:174:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 174 | constexpr std::array, N> to_array_lvalue_impl( | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:174:40: error: wrong number of template arguments (1, should be 2) 174 | constexpr std::array, N> to_array_lvalue_impl( | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/mutex:38, from ../src/../src/Networking.h:74, from ../src/../src/WebSocketProtocol.h:5, from ../src/../src/WebSocket.h:4, from ../src/../src/Group.h:4, from ../src/../src/Hub.h:4, from ../src/../src/uWS.h:4, from ../src/addon.cpp:1: /usr/include/c++/11/array:95:12: note: provided for ‘template struct std::array’ 95 | struct array | ^~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-script.h:19, from /root/.cache/node-gyp/22.0.0/include/node/v8-debug.h:10, from /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:18, from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:174:41: error: expected unqualified-id before ‘,’ token 174 | constexpr std::array, N> to_array_lvalue_impl( | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:180:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 180 | constexpr std::array, N> to_array_rvalue_impl( | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:180:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 180 | constexpr std::array, N> to_array_rvalue_impl( | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:180:40: error: wrong number of template arguments (1, should be 2) 180 | constexpr std::array, N> to_array_rvalue_impl( | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/mutex:38, from ../src/../src/Networking.h:74, from ../src/../src/WebSocketProtocol.h:5, from ../src/../src/WebSocket.h:4, from ../src/../src/Group.h:4, from ../src/../src/Hub.h:4, from ../src/../src/uWS.h:4, from ../src/addon.cpp:1: /usr/include/c++/11/array:95:12: note: provided for ‘template struct std::array’ 95 | struct array | ^~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-script.h:19, from /root/.cache/node-gyp/22.0.0/include/node/v8-debug.h:10, from /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:18, from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:180:41: error: expected unqualified-id before ‘,’ token 180 | constexpr std::array, N> to_array_rvalue_impl( | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:187:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 187 | constexpr std::array, N> to_array(T (&a)[N]) { | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:187:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 187 | constexpr std::array, N> to_array(T (&a)[N]) { | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:187:40: error: wrong number of template arguments (1, should be 2) 187 | constexpr std::array, N> to_array(T (&a)[N]) { | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/mutex:38, from ../src/../src/Networking.h:74, from ../src/../src/WebSocketProtocol.h:5, from ../src/../src/WebSocket.h:4, from ../src/../src/Group.h:4, from ../src/../src/Hub.h:4, from ../src/../src/uWS.h:4, from ../src/addon.cpp:1: /usr/include/c++/11/array:95:12: note: provided for ‘template struct std::array’ 95 | struct array | ^~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-script.h:19, from /root/.cache/node-gyp/22.0.0/include/node/v8-debug.h:10, from /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:18, from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:187:41: error: expected unqualified-id before ‘,’ token 187 | constexpr std::array, N> to_array(T (&a)[N]) { | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:192:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 192 | constexpr std::array, N> to_array(T (&&a)[N]) { | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:192:27: error: ‘remove_cv_t’ is not a member of ‘std’; did you mean ‘remove_cv’? 192 | constexpr std::array, N> to_array(T (&&a)[N]) { | ^~~~~~~~~~~ | remove_cv /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:192:40: error: wrong number of template arguments (1, should be 2) 192 | constexpr std::array, N> to_array(T (&&a)[N]) { | ^ In file included from /usr/include/c++/11/tuple:39, from /usr/include/c++/11/mutex:38, from ../src/../src/Networking.h:74, from ../src/../src/WebSocketProtocol.h:5, from ../src/../src/WebSocket.h:4, from ../src/../src/Group.h:4, from ../src/../src/Hub.h:4, from ../src/../src/uWS.h:4, from ../src/addon.cpp:1: /usr/include/c++/11/array:95:12: note: provided for ‘template struct std::array’ 95 | struct array | ^~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-script.h:19, from /root/.cache/node-gyp/22.0.0/include/node/v8-debug.h:10, from /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:18, from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-memory-span.h:192:41: error: expected unqualified-id before ‘,’ token 192 | constexpr std::array, N> to_array(T (&&a)[N]) { | ^ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h: In member function ‘v8::MaybeLocal v8::Isolate::GetDataFromSnapshotOnce(size_t)’: /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:1750:7: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ 1750 | if (auto slot = GetDataFromSnapshotOnce(index); slot) { | ^~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-context.h: In member function ‘v8::MaybeLocal v8::Context::GetDataFromSnapshotOnce(size_t)’: /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:468:7: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’ 468 | if (auto slot = GetDataFromSnapshotOnce(index); slot) { | ^~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h: At global scope: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:42: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive] 1214 | Isolate* isolate, MemorySpan names); | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:58: error: template argument 1 is invalid 1214 | Isolate* isolate, MemorySpan names); | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:42: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive] 1214 | Isolate* isolate, MemorySpan names); | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:58: error: template argument 1 is invalid 1214 | Isolate* isolate, MemorySpan names); | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:42: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive] 1214 | Isolate* isolate, MemorySpan names); | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:58: error: template argument 1 is invalid 1214 | Isolate* isolate, MemorySpan names); | ^ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:25: error: ‘MemorySpan’ is not a type 1214 | Isolate* isolate, MemorySpan names); | ^~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1214:35: error: expected ‘,’ or ‘...’ before ‘<’ token 1214 | Isolate* isolate, MemorySpan names); | ^ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:687:8: error: ‘optional’ in namespace ‘std’ does not name a template type 687 | std::optional builder_script_path; | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:687:3: note: ‘std::optional’ is only available from C++17 onwards 687 | std::optional builder_script_path; | ^~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:759:10: error: ‘std::string_view’ has not been declared 759 | std::string_view main_script_source_utf8, | ^~~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:21:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 21 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, noop), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In constructor ‘NativeString::NativeString(const v8::Local&)’: ../src/addon.h:37:70: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(const v8::Local&)’ 37 | utf8Value = new (utf8ValueMemory) String::Utf8Value(value); | ^ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:513:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local)’ 513 | Utf8Value(Isolate* isolate, Local obj); | ^~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:513:5: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:2: ../src/addon.h:45:26: error: ‘Contents’ is not a member of ‘v8::ArrayBuffer’ 45 | ArrayBuffer::Contents contents = arrayBufferView->Buffer()->GetContents(); | ^~~~~~~~ ../src/addon.h:46:22: error: ‘contents’ was not declared in this scope 46 | length = contents.ByteLength(); | ^~~~~~~~ ../src/addon.h:50:26: error: ‘Contents’ is not a member of ‘v8::ArrayBuffer’ 50 | ArrayBuffer::Contents contents = arrayBuffer->GetContents(); | ^~~~~~~~ ../src/addon.h:51:22: error: ‘contents’ was not declared in this scope 51 | length = contents.ByteLength(); | ^~~~~~~~ ../src/addon.h: In function ‘void createGroup(const v8::FunctionCallbackInfo&)’: ../src/addon.h:79:82: error: no matching function for call to ‘v8::Value::IntegerValue()’ 79 | uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h:79:107: error: no matching function for call to ‘v8::Value::IntegerValue()’ 79 | uWS::Group *group = hub.createGroup(args[0]->IntegerValue(), args[1]->IntegerValue()); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘v8::Local wrapMessage(const char*, size_t, uWS::OpCode, v8::Isolate*)’: ../src/addon.h:102:75: error: no matching function for call to ‘v8::ArrayBuffer::New(v8::Isolate*&, char*, size_t&)’ 102 | return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:219:29: note: candidate: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, size_t)’ 219 | static Local New(Isolate* isolate, size_t byte_length); | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:219:29: note: candidate expects 2 arguments, 3 provided /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:233:29: note: candidate: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, std::shared_ptr)’ 233 | static Local New(Isolate* isolate, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:233:29: note: candidate expects 2 arguments, 3 provided In file included from ../src/addon.cpp:2: ../src/addon.h:102:174: error: ‘kNormalString’ is not a member of ‘v8::String’ 102 | return opCode == uWS::OpCode::BINARY ? (Local) ArrayBuffer::New(isolate, (char *) message, length) : (Local) String::NewFromUtf8(isolate, message, String::kNormalString, length); | ^~~~~~~~~~~~~ ../src/addon.h: In function ‘void sendCallback(uWS::WebSocket*, void*, bool, void*)’: ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void send(const v8::FunctionCallbackInfo&)’: ../src/addon.h:172:61: error: no matching function for call to ‘v8::Value::IntegerValue()’ 172 | uWS::OpCode opCode = (uWS::OpCode) args[2]->IntegerValue(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void transfer(const v8::FunctionCallbackInfo&)’: ../src/addon.h:223:59: error: no matching function for call to ‘v8::Value::ToObject()’ 223 | uv_fileno((handle = getTcpHandle(args[0]->ToObject()->GetAlignedPointerFromInternalField(0))), (uv_os_fd_t *) &ticket->fd); | ~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:401:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToObject(v8::Local) const’ 401 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject( | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:401:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h:225:43: error: no matching function for call to ‘v8::Value::IntegerValue()’ 225 | ticket->fd = args[0]->IntegerValue(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:272:62: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [2])’ 272 | Local::New(isolate, *messageCallback)->Call(isolate->GetCurrentContext()->Global(), 2, argv); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:339:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 339 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *errorCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void closeSocket(const v8::FunctionCallbackInfo&)’: ../src/addon.h:349:80: error: no matching function for call to ‘v8::Value::IntegerValue()’ 349 | unwrapSocket(args[0].As())->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void closeGroup(const v8::FunctionCallbackInfo&)’: ../src/addon.h:361:39: error: no matching function for call to ‘v8::Value::IntegerValue()’ 361 | group->close(args[1]->IntegerValue(), nativeString.getData(), nativeString.getLength()); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void broadcast(const v8::FunctionCallbackInfo&)’: ../src/addon.h:372:47: error: no matching function for call to ‘v8::Value::BooleanValue()’ 372 | uWS::OpCode opCode = args[2]->BooleanValue() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT; | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:437:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’ 437 | bool BooleanValue(Isolate* isolate) const; | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:437:8: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void prepareMessage(const v8::FunctionCallbackInfo&)’: ../src/addon.h:379:61: error: no matching function for call to ‘v8::Value::IntegerValue()’ 379 | uWS::OpCode opCode = (uWS::OpCode) args[1]->IntegerValue(); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In lambda function: ../src/addon.h:403:17: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [1])’ 403 | cb->Call(Null(isolate), 1, argv); | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void startAutoPing(const v8::FunctionCallbackInfo&)’: ../src/addon.h:416:47: error: no matching function for call to ‘v8::Value::IntegerValue()’ 416 | group->startAutoPing(args[1]->IntegerValue(), std::string(nativeString.getData(), nativeString.getLength())); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In function ‘void listen(const v8::FunctionCallbackInfo&)’: ../src/addon.h:425:37: error: no matching function for call to ‘v8::Value::IntegerValue()’ 425 | hub.listen(args[1]->IntegerValue(), nullptr, 0, group); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In constructor ‘Namespace::Namespace(v8::Isolate*)’: ../src/addon.h:462:20: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local&)’ 462 | object->Set(String::NewFromUtf8(isolate, "group"), group); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::Request::headers(v8::Local, const v8::PropertyCallbackInfo&)’: ../src/http.h:31:123: error: ‘kNormalString’ is not a member of ‘v8::String’ 31 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) header.value, String::kNormalString, header.valueLength)); | ^~~~~~~~~~~~~ ../src/http.h: In static member function ‘static void HttpServer::Request::method(v8::Local, const v8::PropertyCallbackInfo&)’: ../src/http.h:45:112: error: ‘kNormalString’ is not a member of ‘v8::String’ 45 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "GET", String::kNormalString, 3)); | ^~~~~~~~~~~~~ ../src/http.h:48:112: error: ‘kNormalString’ is not a member of ‘v8::String’ 48 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PUT", String::kNormalString, 3)); | ^~~~~~~~~~~~~ ../src/http.h:51:113: error: ‘kNormalString’ is not a member of ‘v8::String’ 51 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "POST", String::kNormalString, 4)); | ^~~~~~~~~~~~~ ../src/http.h:54:113: error: ‘kNormalString’ is not a member of ‘v8::String’ 54 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "HEAD", String::kNormalString, 4)); | ^~~~~~~~~~~~~ ../src/http.h:57:114: error: ‘kNormalString’ is not a member of ‘v8::String’ 57 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "PATCH", String::kNormalString, 5)); | ^~~~~~~~~~~~~ ../src/http.h:60:114: error: ‘kNormalString’ is not a member of ‘v8::String’ 60 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "TRACE", String::kNormalString, 5)); | ^~~~~~~~~~~~~ ../src/http.h:63:115: error: ‘kNormalString’ is not a member of ‘v8::String’ 63 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "DELETE", String::kNormalString, 6)); | ^~~~~~~~~~~~~ ../src/http.h:66:116: error: ‘kNormalString’ is not a member of ‘v8::String’ 66 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "OPTIONS", String::kNormalString, 7)); | ^~~~~~~~~~~~~ ../src/http.h:69:116: error: ‘kNormalString’ is not a member of ‘v8::String’ 69 | args.GetReturnValue().Set(String::NewFromOneByte(args.GetIsolate(), (uint8_t *) "CONNECT", String::kNormalString, 7)); | ^~~~~~~~~~~~~ ../src/http.h: In static member function ‘static v8::Local HttpServer::Request::getTemplateObject(v8::Isolate*)’: ../src/http.h:90:63: error: cannot convert ‘v8::MaybeLocal’ to ‘v8::Local’ 90 | reqTemplateLocal->SetClassName(String::NewFromUtf8(isolate, "uws.Request")); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ | | | v8::MaybeLocal In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:651:35: note: initializing argument 1 of ‘void v8::FunctionTemplate::SetClassName(v8::Local)’ 651 | void SetClassName(Local name); | ~~~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:92:63: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::MaybeLocal, void (&)(v8::Local, const v8::PropertyCallbackInfo&))’ 92 | reqTemplateLocal->PrototypeTemplate()->SetAccessor(String::NewFromUtf8(isolate, "url"), Request::url); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1049:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’ 1049 | void SetAccessor( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1050:21: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 1050 | Local name, AccessorGetterCallback getter, | ~~~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1055:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’ 1055 | void SetAccessor( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1056:19: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 1056 | Local name, AccessorNameGetterCallback getter, | ~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:93:63: error: no matching function for call to ‘v8::ObjectTemplate::SetAccessor(v8::MaybeLocal, void (&)(v8::Local, const v8::PropertyCallbackInfo&))’ 93 | reqTemplateLocal->PrototypeTemplate()->SetAccessor(String::NewFromUtf8(isolate, "method"), Request::method); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1049:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorGetterCallback, v8::AccessorSetterCallback, v8::Local, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’ 1049 | void SetAccessor( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1050:21: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 1050 | Local name, AccessorGetterCallback getter, | ~~~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1055:8: note: candidate: ‘void v8::ObjectTemplate::SetAccessor(v8::Local, v8::AccessorNameGetterCallback, v8::AccessorNameSetterCallback, v8::Local, v8::PropertyAttribute, v8::SideEffectType, v8::SideEffectType)’ 1055 | void SetAccessor( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1056:19: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 1056 | Local name, AccessorNameGetterCallback getter, | ~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:94:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 94 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, Request::on)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:95:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 95 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "unpipe"), FunctionTemplate::New(isolate, Request::unpipe)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:96:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 96 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "resume"), FunctionTemplate::New(isolate, Request::resume)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:97:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 97 | reqTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "socket"), FunctionTemplate::New(isolate, Request::socket)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:99:73: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 99 | Local reqObjectLocal = reqTemplateLocal->GetFunction()->NewInstance(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:596:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ 596 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:596:46: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:102:30: error: ‘class v8::ObjectTemplate’ has no member named ‘SetNamedPropertyHandler’; did you mean ‘SetIndexedPropertyHandler’? 102 | headersTemplate->SetNamedPropertyHandler(Request::headers); | ^~~~~~~~~~~~~~~~~~~~~~~ | SetIndexedPropertyHandler ../src/http.h:104:102: error: no matching function for call to ‘v8::ObjectTemplate::NewInstance()’ 104 | reqObjectLocal->Set(String::NewFromUtf8(isolate, "headers"), headersTemplate->NewInstance()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1030:44: note: candidate: ‘v8::MaybeLocal v8::ObjectTemplate::NewInstance(v8::Local)’ 1030 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance(Local context); | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1030:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::Response::writeHead(const v8::FunctionCallbackInfo&)’: ../src/http.h:137:86: error: no matching function for call to ‘v8::Value::IntegerValue()’ 137 | std::string head = "HTTP/1.1 " + std::to_string(args[0]->IntegerValue()) + " "; | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:147:84: error: no matching function for call to ‘v8::Value::ToObject()’ 147 | Local headersObject = args[args.Length() - 1]->ToObject(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:401:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToObject(v8::Local) const’ 401 | V8_WARN_UNUSED_RESULT MaybeLocal ToObject( | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:401:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:148:78: error: no matching function for call to ‘v8::Object::GetOwnPropertyNames()’ 148 | Local headers = headersObject->GetOwnPropertyNames(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:414:43: note: candidate: ‘v8::MaybeLocal v8::Object::GetOwnPropertyNames(v8::Local)’ 414 | V8_WARN_UNUSED_RESULT MaybeLocal GetOwnPropertyNames( | ^~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:414:43: note: candidate expects 1 argument, 0 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:423:43: note: candidate: ‘v8::MaybeLocal v8::Object::GetOwnPropertyNames(v8::Local, v8::PropertyFilter, v8::KeyConversionMode)’ 423 | V8_WARN_UNUSED_RESULT MaybeLocal GetOwnPropertyNames( | ^~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:423:43: note: candidate expects 3 arguments, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:149:39: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 149 | for (int i = 0; i < headers->Length(); i++) { | ~~^~~~~~~~~~~~~~~~~~~ ../src/http.h:150:56: error: no matching function for call to ‘v8::Array::Get(int&)’ 150 | Local key = headers->Get(i); | ~~~~~~~~~~~~^~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 298 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h:151:64: error: no matching function for call to ‘v8::Object::Get(v8::Local&)’ 151 | Local value = headersObject->Get(key); | ~~~~~~~~~~~~~~~~~~^~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 298 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static v8::Local HttpServer::Response::getTemplateObject(v8::Isolate*)’: ../src/http.h:188:63: error: cannot convert ‘v8::MaybeLocal’ to ‘v8::Local’ 188 | resTemplateLocal->SetClassName(String::NewFromUtf8(isolate, "uws.Response")); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ | | | v8::MaybeLocal In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:651:35: note: initializing argument 1 of ‘void v8::FunctionTemplate::SetClassName(v8::Local)’ 651 | void SetClassName(Local name); | ~~~~~~~~~~~~~~^~~~ In file included from ../src/addon.cpp:3: ../src/http.h:190:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 190 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "end"), FunctionTemplate::New(isolate, Response::end)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:191:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 191 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "writeHead"), FunctionTemplate::New(isolate, Response::writeHead)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:192:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 192 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "write"), FunctionTemplate::New(isolate, Response::write)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:193:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 193 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, Response::on)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:194:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 194 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "setHeader"), FunctionTemplate::New(isolate, Response::setHeader)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:195:55: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 195 | resTemplateLocal->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "getHeader"), FunctionTemplate::New(isolate, Response::getHeader)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:196:49: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 196 | return resTemplateLocal->GetFunction()->NewInstance(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:596:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ 596 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:596:46: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In lambda function: ../src/http.h:227:116: error: ‘kNormalString’ is not a member of ‘v8::String’ 227 | reqObject->SetInternalField(4, String::NewFromOneByte(isolate, (uint8_t *) req.getUrl().value, String::kNormalString, req.getUrl().valueLength)); | ^~~~~~~~~~~~~ ../src/http.h:230:70: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [2])’ 230 | Local::New(isolate, *httpRequestCallback)->Call(isolate->GetCurrentContext()->Global(), 2, argv); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:235:60: error: no matching function for call to ‘v8::ArrayBuffer::New(v8::Isolate* const&, char*&, size_t&)’ 235 | Local argv[] = {ArrayBuffer::New(isolate, data, length)}; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:219:29: note: candidate: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, size_t)’ 219 | static Local New(Isolate* isolate, size_t byte_length); | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:219:29: note: candidate expects 2 arguments, 3 provided /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:233:29: note: candidate: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, std::shared_ptr)’ 233 | static Local New(Isolate* isolate, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:233:29: note: candidate expects 2 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:236:62: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [1])’ 236 | Local::Cast(dataCallback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:242:65: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 242 | Local::Cast(endCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In lambda function: ../src/http.h:265:59: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 265 | Local::Cast(closeCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In lambda function: ../src/http.h:279:56: error: no matching function for call to ‘v8::ArrayBuffer::New(v8::Isolate* const&, char*&, size_t&)’ 279 | Local argv[] = {ArrayBuffer::New(isolate, data, length)}; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:219:29: note: candidate: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, size_t)’ 219 | static Local New(Isolate* isolate, size_t byte_length); | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:219:29: note: candidate expects 2 arguments, 3 provided /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:233:29: note: candidate: ‘static v8::Local v8::ArrayBuffer::New(v8::Isolate*, std::shared_ptr)’ 233 | static Local New(Isolate* isolate, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:233:29: note: candidate expects 2 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:280:58: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, v8::Local [1])’ 280 | Local::Cast(dataCallback)->Call(isolate->GetCurrentContext()->Global(), 1, argv); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h:286:61: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 286 | Local::Cast(endCallback)->Call(isolate->GetCurrentContext()->Global(), 0, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::createServer(const v8::FunctionCallbackInfo&)’: ../src/http.h:293:121: error: no matching function for call to ‘v8::Function::NewInstance()’ 293 | args.GetReturnValue().Set(newInstance = Local::New(args.GetIsolate(), httpPersistent)->NewInstance()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const’ 38 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:38:44: note: candidate expects 3 arguments, 0 provided /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ 41 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:41:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::listen(const v8::FunctionCallbackInfo&)’: ../src/http.h:308:68: error: no matching function for call to ‘v8::Value::IntegerValue()’ 308 | std::cout << "listen: " << hub.listen(args[0]->IntegerValue(), nullptr, 0, group) << std::endl; | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-primitive.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:11, from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate: ‘v8::Maybe v8::Value::IntegerValue(v8::Local) const’ 442 | V8_WARN_UNUSED_RESULT Maybe IntegerValue( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-value.h:442:40: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h:311:65: error: no matching function for call to ‘v8::Function::Call(v8::Local, int, std::nullptr_t)’ 311 | Local::Cast(args[args.Length() - 1])->Call(args.GetIsolate()->GetCurrentContext()->Global(), 0, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate: ‘v8::MaybeLocal v8::Function::Call(v8::Local, v8::Local, int, v8::Local*)’ 55 | V8_WARN_UNUSED_RESULT MaybeLocal Call(Local context, | ^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:55:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static void HttpServer::getExpressApp(const v8::FunctionCallbackInfo&)’: ../src/http.h:320:25: error: no matching function for call to ‘v8::Function::Get(v8::MaybeLocal)’ 320 | express->Get(String::NewFromUtf8(isolate, "request"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), reqTemplate)->GetPrototype()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 298 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h:321:25: error: no matching function for call to ‘v8::Function::Get(v8::MaybeLocal)’ 321 | express->Get(String::NewFromUtf8(isolate, "response"))->ToObject()->SetPrototype(Local::New(args.GetIsolate(), resTemplate)->GetPrototype()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local)’ 295 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:295:43: note: candidate expects 2 arguments, 1 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate: ‘v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t)’ 298 | V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:298:43: note: candidate expects 2 arguments, 1 provided In file included from ../src/addon.cpp:3: ../src/http.h:327:59: error: no matching function for call to ‘v8::Function::NewInstance()’ 327 | args.GetReturnValue().Set(express->NewInstance()); | ~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:38:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local, int, v8::Local*) const’ 38 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:38:44: note: candidate expects 3 arguments, 0 provided /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:41:44: note: candidate: ‘v8::MaybeLocal v8::Function::NewInstance(v8::Local) const’ 41 | V8_WARN_UNUSED_RESULT MaybeLocal NewInstance( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:41:44: note: candidate expects 1 argument, 0 provided In file included from ../src/addon.cpp:3: ../src/http.h: In static member function ‘static v8::Local HttpServer::getHttpServer(v8::Isolate*)’: ../src/http.h:343:24: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 343 | httpServer->Set(String::NewFromUtf8(isolate, "createServer"), FunctionTemplate::New(isolate, HttpServer::createServer)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:344:24: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 344 | httpServer->Set(String::NewFromUtf8(isolate, "getExpressApp"), FunctionTemplate::New(isolate, HttpServer::getExpressApp)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:345:24: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 345 | httpServer->Set(String::NewFromUtf8(isolate, "getResponsePrototype"), FunctionTemplate::New(isolate, HttpServer::getResponsePrototype)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:346:24: error: no matching function for call to ‘v8::FunctionTemplate::Set(v8::MaybeLocal, v8::Local)’ 346 | httpServer->Set(String::NewFromUtf8(isolate, "getRequestPrototype"), FunctionTemplate::New(isolate, HttpServer::getRequestPrototype)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:347:45: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 347 | httpServer->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "listen"), FunctionTemplate::New(isolate, HttpServer::listen)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:348:45: error: no matching function for call to ‘v8::ObjectTemplate::Set(v8::MaybeLocal, v8::Local)’ 348 | httpServer->PrototypeTemplate()->Set(String::NewFromUtf8(isolate, "on"), FunctionTemplate::New(isolate, HttpServer::on)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:8: note: candidate: ‘void v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’ 56 | void Set(Local name, Local value, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:56:24: note: no known conversion for argument 1 from ‘v8::MaybeLocal’ to ‘v8::Local’ 56 | void Set(Local name, Local value, | ~~~~~~~~~~~~^~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate: ‘void v8::Template::Set(v8::Isolate*, const char*, v8::Local, v8::PropertyAttribute)’ 1260 | void Template::Set(Isolate* isolate, const char* name, Local value, | ^~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:1260:6: note: candidate expects 4 arguments, 2 provided In file included from ../src/addon.cpp:3: ../src/http.h:353:66: error: no matching function for call to ‘v8::FunctionTemplate::GetFunction()’ 353 | Local httpServerLocal = httpServer->GetFunction(); | ~~~~~~~~~~~~~~~~~~~~~~~^~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-function.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:33, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:596:46: note: candidate: ‘v8::MaybeLocal v8::FunctionTemplate::GetFunction(v8::Local)’ 596 | V8_WARN_UNUSED_RESULT MaybeLocal GetFunction( | ^~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-template.h:596:46: note: candidate expects 1 argument, 0 provided ../src/addon.cpp: In function ‘void Main(v8::Local)’: ../src/addon.cpp:8:17: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local)’ 8 | exports->Set(String::NewFromUtf8(isolate, "server"), Namespace(isolate).object); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided ../src/addon.cpp:9:17: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local)’ 9 | exports->Set(String::NewFromUtf8(isolate, "client"), Namespace(isolate).object); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided ../src/addon.cpp:10:17: error: no matching function for call to ‘v8::Object::Set(v8::MaybeLocal, v8::Local)’ 10 | exports->Set(String::NewFromUtf8(isolate, "httpServer"), HttpServer::getHttpServer(isolate)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.h:1, from ../src/addon.cpp:2: ../src/addon.cpp: At global scope: /root/.cache/node-gyp/22.0.0/include/node/node.h:1223:7: warning: cast between incompatible function types from ‘void (*)(v8::Local)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local, v8::Local, void*)’} [-Wcast-function-type] 1223 | (node::addon_register_func) (regfunc), \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:1257:3: note: in expansion of macro ‘NODE_MODULE_X’ 1257 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) | ^~~~~~~~~~~~~ ../src/addon.cpp:24:1: note: in expansion of macro ‘NODE_MODULE’ 24 | NODE_MODULE(uws, Main) | ^~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-isolate.h:20, from /root/.cache/node-gyp/22.0.0/include/node/v8-snapshot.h:9, from /root/.cache/node-gyp/22.0.0/include/node/v8-context.h:15, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:26, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-function-callback.h: In instantiation of ‘void v8::ReturnValue::Set(v8::Local) [with S = v8::Data; T = v8::Value]’: ../src/http.h:37:38: required from here /root/.cache/node-gyp/22.0.0/include/node/v8-function-callback.h:355:40: error: static assertion failed: type check 355 | static_assert(std::is_void::value || std::is_base_of::value, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-function-callback.h:355:40: note: ‘(((bool)std::integral_constant::value) || ((bool)std::integral_constant::value))’ evaluates to false In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:12, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-local-handle.h: In instantiation of ‘v8::Local::Local(v8::Local) [with S = v8::Data; T = v8::Value]’: ../src/http.h:233:74: required from here /root/.cache/node-gyp/22.0.0/include/node/v8-local-handle.h:269:42: error: static assertion failed: type check 269 | static_assert(std::is_base_of::value, "type check"); | ^~~~~ /root/.cache/node-gyp/22.0.0/include/node/v8-local-handle.h:269:42: note: ‘std::integral_constant::value’ evaluates to false In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void getAddress(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.cpp:15:20: required from here ../src/addon.h:137:15: error: no matching function for call to ‘v8::Array::Set(int, v8::Local)’ 137 | array->Set(0, Integer::New(args.GetIsolate(), address.port)); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:2: ../src/addon.h:138:15: error: no matching function for call to ‘v8::Array::Set(int, v8::MaybeLocal)’ 138 | array->Set(1, String::NewFromUtf8(args.GetIsolate(), address.address)); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:2: ../src/addon.h:139:15: error: no matching function for call to ‘v8::Array::Set(int, v8::MaybeLocal)’ 139 | array->Set(2, String::NewFromUtf8(args.GetIsolate(), address.family)); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /root/.cache/node-gyp/22.0.0/include/node/v8-array-buffer.h:13, from /root/.cache/node-gyp/22.0.0/include/node/v8.h:24, from /root/.cache/node-gyp/22.0.0/include/node/node.h:73, from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, v8::Local, v8::Local)’ 240 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:240:37: note: candidate expects 3 arguments, 2 provided /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate: ‘v8::Maybe v8::Object::Set(v8::Local, uint32_t, v8::Local)’ 243 | V8_WARN_UNUSED_RESULT Maybe Set(Local context, uint32_t index, | ^~~ /root/.cache/node-gyp/22.0.0/include/node/v8-object.h:243:37: note: candidate expects 3 arguments, 2 provided In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:441:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:443:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPing(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:454:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPong(const v8::FunctionCallbackInfo&) [with bool isServer = true]’: ../src/addon.h:455:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onConnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:441:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:256:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 256 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *connectionCallback), 1, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onDisconnection(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:443:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:324:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 324 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *disconnectionCallback), 4, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPing(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:454:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:288:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 288 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pingCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void onPong(const v8::FunctionCallbackInfo&) [with bool isServer = false]’: ../src/addon.h:455:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:304:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 304 | node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local::New(isolate, *pongCallback), 2, argv); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void sendCallback(uWS::WebSocket*, void*, bool, void*) [with bool isServer = true]’: ../src/addon.h:179:18: required from ‘void send(const v8::FunctionCallbackInfo&) [with bool isServer = true]’ ../src/addon.h:433:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = true]’ ../src/addon.cpp:8:88: required from here ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ In file included from ../src/addon.cpp:2: ../src/addon.h: In instantiation of ‘void sendCallback(uWS::WebSocket*, void*, bool, void*) [with bool isServer = false]’: ../src/addon.h:179:18: required from ‘void send(const v8::FunctionCallbackInfo&) [with bool isServer = false]’ ../src/addon.h:433:24: required from ‘Namespace::Namespace(v8::Isolate*) [with bool isServer = false]’ ../src/addon.cpp:9:88: required from here ../src/addon.h:163:27: warning: ‘v8::Local node::MakeCallback(v8::Isolate*, v8::Local, v8::Local, int, v8::Local*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] 163 | node::MakeCallback(sc->isolate, sc->isolate->GetCurrentContext()->Global(), Local::New(sc->isolate, sc->jsCallback), 0, nullptr); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/addon.h:1, from ../src/addon.cpp:2: /root/.cache/node-gyp/22.0.0/include/node/node.h:199:50: note: declared here 199 | NODE_EXTERN v8::Local MakeCallback( | ^~~~~~~~~~~~ /root/.cache/node-gyp/22.0.0/include/node/node.h:116:42: note: in definition of macro ‘NODE_DEPRECATED’ 116 | __attribute__((deprecated(message))) declarator | ^~~~~~~~~~ make: *** [uws.target.mk:113: Release/obj.target/uws/src/addon.o] Error 1 make: Leaving directory '/var/www/html/wp-content/themes/solace-theme/node_modules/uws/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess. (/root/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) gyp ERR! System Linux 5.15.0-41-generic gyp ERR! command "/root/.nvm/versions/node/v22.0.0/bin/node" "/root/.nvm/versions/node/v22.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /var/www/html/wp-content/themes/solace-theme/node_modules/uws gyp ERR! node -v v22.0.0 gyp ERR! node-gyp -v v10.1.0 gyp ERR! not ok