In file included from ../ext/bson.cc:35:0: ../ext/bson.h:52:51: error: 'Arguments' does not name a type static Handle BSONDeserializeStream(const Arguments &args); ^~~~~~~~~ ../ext/bson.h:55:43: error: 'Arguments' does not name a type static Handle BSONSerialize(const Arguments &args); ^~~~~~~~~ ../ext/bson.h:56:45: error: 'Arguments' does not name a type static Handle BSONDeserialize(const Arguments &args); ^~~~~~~~~ ../ext/bson.h:59:49: error: 'Arguments' does not name a type static Handle CalculateObjectSize(const Arguments &args); ^~~~~~~~~ ../ext/bson.h:60:57: error: 'Arguments' does not name a type static Handle SerializeWithBufferAndIndex(const Arguments &args); ^~~~~~~~~ ../ext/bson.h:66:33: error: 'Arguments' does not name a type static Handle New(const Arguments &args); ^~~~~~~~~ ../ext/bson.cc: In member function 'void BSONSerializer::SerializeValue(void*, v8::Handle&)': ../ext/bson.cc:194:39: error: no matching function for call to 'v8::Object::Has(v8::Persistent&)' if(object->Has(bson->_bsontypeString)) ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3198:47: note: candidate: bool v8::Object::Has(v8::Local) V8_DEPRECATE_SOON("Use maybe version", bool Has(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3198:47: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", bool Has(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3214:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3214:37: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3221:43: note: candidate: bool v8::Object::Has(uint32_t) V8_DEPRECATED("Use maybe version", bool Has(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3221:43: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATED("Use maybe version", bool Has(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3222:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3222:37: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:197:23: error: base operand of '->' has non-pointer type 'v8::Persistent' if(bson->longString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:203:33: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->timestampString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:209:32: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->objectIDString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:214:30: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->binaryString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:218:62: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' uint32_t length = object->Get(bson->_binaryPositionString)->Uint32Value(); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:219:68: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' Local bufferObj = object->Get(bson->_binaryBufferString)->ToObject(); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:224:46: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' if(object->Get(bson->_binarySubTypeString)->Int32Value() == 0x02) { ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:230:30: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->doubleString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:235:30: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->symbolString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:238:73: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' this->WriteLengthPrefixedString(object->Get(bson->_symbolValueString)->ToString()); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:240:28: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->codeString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:242:70: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' const Local& function = object->Get(bson->_codeCodeString)->ToString(); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:243:68: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' const Local& scope = object->Get(bson->_codeScopeString)->ToObject(); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:266:29: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->dbrefString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:274:68: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' SerializeValue(refType, object->Get(bson->_dbRefNamespaceString)); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:278:61: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' SerializeValue(idType, object->Get(bson->_dbRefOidString)); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:280:70: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' const Local& refDbValue = object->Get(bson->_dbRefDbString); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:291:30: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->minKeyString->StrictEquals(constructorString)) ^~ ../ext/bson.cc:295:30: error: base operand of '->' has non-pointer type 'v8::Persistent' else if(bson->maxKeyString->StrictEquals(constructorString)) ^~ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadCString()': ../ext/bson.cc:352:9: error: 'New' is not a member of 'v8::String' return String::New(start, (int32_t) (p-start-1) ); ^~~~~~ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadString()': ../ext/bson.cc:387:9: error: 'New' is not a member of 'v8::String' return String::New(start, length-1); ^~~~~~ ../ext/bson.cc: In member function 'v8::Local BSONDeserializer::ReadObjectId()': ../ext/bson.cc:397:9: error: 'New' is not a member of 'v8::String' return String::New(objectId, 12); ^~~~~~ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeDocumentInternal()': ../ext/bson.cc:411:43: error: no matching function for call to 'v8::Object::New()' Local returnObject = Object::New(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3541:24: note: candidate: static v8::Local v8::Object::New(v8::Isolate*) static Local New(Isolate* isolate); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3541:24: note: candidate expects 1 argument, 0 provided ../ext/bson.cc:418:37: warning: 'bool v8::Object::ForceSet(v8::Local, v8::Local, v8::PropertyAttribute)' is deprecated: Use CreateDataProperty / DefineOwnProperty [-Wdeprecated-declarations] returnObject->ForceSet(name, value); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3165:22: note: declared here bool ForceSet(Local key, Local value, ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ ../ext/bson.cc:424:46: error: no matching function for call to 'v8::Object::Has(v8::Persistent&)' if(returnObject->Has(bson->_dbRefIdRefString)) ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3198:47: note: candidate: bool v8::Object::Has(v8::Local) V8_DEPRECATE_SOON("Use maybe version", bool Has(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3198:47: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", bool Has(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3214:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3214:37: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3221:43: note: candidate: bool v8::Object::Has(uint32_t) V8_DEPRECATED("Use maybe version", bool Has(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3221:43: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATED("Use maybe version", bool Has(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3222:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3222:37: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:426:66: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' Local argv[] = { returnObject->Get(bson->_dbRefRefString), returnObject->Get(bson->_dbRefIdRefString), returnObject->Get(bson->_dbRefDbRefString) }; ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:426:110: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' Local argv[] = { returnObject->Get(bson->_dbRefRefString), returnObject->Get(bson->_dbRefIdRefString), returnObject->Get(bson->_dbRefDbRefString) }; ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:426:154: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' Local argv[] = { returnObject->Get(bson->_dbRefRefString), returnObject->Get(bson->_dbRefIdRefString), returnObject->Get(bson->_dbRefDbRefString) }; ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:427:32: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->dbrefConstructor->NewInstance(3, argv); ^~ ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeArrayInternal()': ../ext/bson.cc:446:40: error: no matching function for call to 'v8::Array::New()' Local returnArray = Array::New(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3574:23: note: candidate: static v8::Local v8::Array::New(v8::Isolate*, int) static Local New(Isolate* isolate, int length = 0); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3574:23: note: candidate expects 2 arguments, 0 provided ../ext/bson.cc: In member function 'v8::Handle BSONDeserializer::DeserializeValue(BsonType)': ../ext/bson.cc:468:34: error: no matching function for call to 'v8::Integer::New(int32_t)' return Integer::New(ReadInt32()); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:471:34: error: no matching function for call to 'v8::Number::New(double)' return Number::New(ReadDouble()); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2966:24: note: candidate: static v8::Local v8::Number::New(v8::Isolate*, double) static Local New(Isolate* isolate, double value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:474:15: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' return Null(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:315:27: note: declared here friend Local Null(Isolate* isolate); ^~~~ ../ext/bson.cc:477:20: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return Undefined(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:314:27: note: declared here friend Local Undefined(Isolate* isolate); ^~~~~~~~~ ../ext/bson.cc:483:46: error: no matching function for call to 'v8::Int32::New(int32_t&)' Local argv[] = { Int32::New(lowBits), Int32::New(highBits) }; ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:483:68: error: no matching function for call to 'v8::Int32::New(int32_t&)' Local argv[] = { Int32::New(lowBits), Int32::New(highBits) }; ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:484:37: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->timestampConstructor->NewInstance(2, argv); ^~ ../ext/bson.cc:488:35: error: too few arguments to function 'v8::Local v8::True(v8::Isolate*)' return (ReadByte() != 0) ? True() : False(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:10218:16: note: declared here Local True(Isolate* isolate) { ^~~~ ../ext/bson.cc:488:45: error: too few arguments to function 'v8::Local v8::False(v8::Isolate*)' return (ReadByte() != 0) ? True() : False(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:10227:16: note: declared here Local False(Isolate* isolate) { ^~~~~ ../ext/bson.cc:500:44: error: no matching function for call to 'v8::Object::New()' const Local& scope = Object::New(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3541:24: note: candidate: static v8::Local v8::Object::New(v8::Isolate*) static Local New(Isolate* isolate); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3541:24: note: candidate expects 1 argument, 0 provided ../ext/bson.cc:502:32: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->codeConstructor->NewInstance(2, argv); ^~ ../ext/bson.cc:511:32: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->codeConstructor->NewInstance(2, argv); ^~ ../ext/bson.cc:517:36: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->objectIDConstructor->NewInstance(1, argv); ^~ ../ext/bson.cc:528:10: error: expected primary-expression before '*' token Buffer* buffer = Buffer::New(p, length); ^ ../ext/bson.cc:528:12: error: 'buffer' was not declared in this scope Buffer* buffer = Buffer::New(p, length); ^~~~~~ ../ext/bson.cc:528:42: error: no matching function for call to 'New(char*&, uint32_t&)' Buffer* buffer = Buffer::New(p, length); ^ In file included from ../ext/bson.cc:24:0: /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, size_t length); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from 'char*' to 'v8::Isolate*' /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, v8::Local, node::encoding) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from 'char*' to 'v8::Isolate*' /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided ../ext/bson.cc:531:65: error: no matching function for call to 'v8::Uint32::New(uint32_t&)' Handle argv[] = { buffer->handle_, Uint32::New(subType) }; ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:532:34: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->binaryConstructor->NewInstance(2, argv); ^~ ../ext/bson.cc:547:38: error: no matching function for call to 'v8::Number::New(int64_t&)' return Number::New(finalValue); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2966:24: note: candidate: static v8::Local v8::Number::New(v8::Isolate*, double) static Local New(Isolate* isolate, double value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2966:24: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:550:46: error: no matching function for call to 'v8::Int32::New(int32_t&)' Local argv[] = { Int32::New(lowBits), Int32::New(highBits) }; ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:550:68: error: no matching function for call to 'v8::Int32::New(int32_t&)' Local argv[] = { Int32::New(lowBits), Int32::New(highBits) }; ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:551:32: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->longConstructor->NewInstance(2, argv); ^~ ../ext/bson.cc:555:40: error: no matching function for call to 'v8::Date::New(double)' return Date::New((double) ReadInt64()); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:4842:41: note: candidate: static v8::Local v8::Date::New(v8::Isolate*, double) Local New(Isolate* isolate, double time)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:4842:41: note: candidate expects 2 arguments, 1 provided Local New(Isolate* isolate, double time)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:4843:50: note: candidate: static v8::MaybeLocal v8::Date::New(v8::Local, double) static V8_WARN_UNUSED_RESULT MaybeLocal New(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:4843:50: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:567:34: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->symbolConstructor->NewInstance(1, argv); ^~ ../ext/bson.cc:571:33: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->minKeyConstructor->NewInstance(); ^~ ../ext/bson.cc:574:33: error: base operand of '->' has non-pointer type 'v8::Persistent' return bson->maxKeyConstructor->NewInstance(); ^~ ../ext/bson.cc:580:18: error: too few arguments to function 'v8::Local v8::Null(v8::Isolate*)' return v8::Null(); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:315:27: note: declared here friend Local Null(Isolate* isolate); ^~~~ ../ext/bson.cc: In function 'v8::Handle VException(const char*)': ../ext/bson.cc:586:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:587:41: error: 'New' is not a member of 'v8::String' return ThrowException(Exception::Error(String::New(msg))); ^~~~~~ ../ext/bson.cc:587:58: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::Error(String::New(msg))); ^ ../ext/bson.cc: In constructor 'BSON::BSON()': ../ext/bson.cc:595:44: error: 'New' is not a member of 'v8::String' _bsontypeString = Persistent::New(String::New("_bsontype")); ^~~~~~ ../ext/bson.cc:596:43: error: 'New' is not a member of 'v8::String' _longLowString = Persistent::New(String::New("low_")); ^~~~~~ ../ext/bson.cc:597:44: error: 'New' is not a member of 'v8::String' _longHighString = Persistent::New(String::New("high_")); ^~~~~~ ../ext/bson.cc:598:46: error: 'New' is not a member of 'v8::String' _objectIDidString = Persistent::New(String::New("id")); ^~~~~~ ../ext/bson.cc:599:50: error: 'New' is not a member of 'v8::String' _binaryPositionString = Persistent::New(String::New("position")); ^~~~~~ ../ext/bson.cc:600:49: error: 'New' is not a member of 'v8::String' _binarySubTypeString = Persistent::New(String::New("sub_type")); ^~~~~~ ../ext/bson.cc:601:48: error: 'New' is not a member of 'v8::String' _binaryBufferString = Persistent::New(String::New("buffer")); ^~~~~~ ../ext/bson.cc:602:47: error: 'New' is not a member of 'v8::String' _doubleValueString = Persistent::New(String::New("value")); ^~~~~~ ../ext/bson.cc:603:47: error: 'New' is not a member of 'v8::String' _symbolValueString = Persistent::New(String::New("value")); ^~~~~~ ../ext/bson.cc:604:44: error: 'New' is not a member of 'v8::String' _dbRefRefString = Persistent::New(String::New("$ref")); ^~~~~~ ../ext/bson.cc:605:46: error: 'New' is not a member of 'v8::String' _dbRefIdRefString = Persistent::New(String::New("$id")); ^~~~~~ ../ext/bson.cc:606:46: error: 'New' is not a member of 'v8::String' _dbRefDbRefString = Persistent::New(String::New("$db")); ^~~~~~ ../ext/bson.cc:607:50: error: 'New' is not a member of 'v8::String' _dbRefNamespaceString = Persistent::New(String::New("namespace")); ^~~~~~ ../ext/bson.cc:608:43: error: 'New' is not a member of 'v8::String' _dbRefDbString = Persistent::New(String::New("db")); ^~~~~~ ../ext/bson.cc:609:44: error: 'New' is not a member of 'v8::String' _dbRefOidString = Persistent::New(String::New("oid")); ^~~~~~ ../ext/bson.cc:610:44: error: 'New' is not a member of 'v8::String' _codeCodeString = Persistent::New(String::New("code")); ^~~~~~ ../ext/bson.cc:611:45: error: 'New' is not a member of 'v8::String' _codeScopeString = Persistent::New(String::New("scope")); ^~~~~~ ../ext/bson.cc:612:42: error: 'New' is not a member of 'v8::String' _toBSONString = Persistent::New(String::New("toBSON")); ^~~~~~ ../ext/bson.cc:614:39: error: 'New' is not a member of 'v8::String' longString = Persistent::New(String::New("Long")); ^~~~~~ ../ext/bson.cc:615:43: error: 'New' is not a member of 'v8::String' objectIDString = Persistent::New(String::New("ObjectID")); ^~~~~~ ../ext/bson.cc:616:41: error: 'New' is not a member of 'v8::String' binaryString = Persistent::New(String::New("Binary")); ^~~~~~ ../ext/bson.cc:617:39: error: 'New' is not a member of 'v8::String' codeString = Persistent::New(String::New("Code")); ^~~~~~ ../ext/bson.cc:618:40: error: 'New' is not a member of 'v8::String' dbrefString = Persistent::New(String::New("DBRef")); ^~~~~~ ../ext/bson.cc:619:41: error: 'New' is not a member of 'v8::String' symbolString = Persistent::New(String::New("Symbol")); ^~~~~~ ../ext/bson.cc:620:41: error: 'New' is not a member of 'v8::String' doubleString = Persistent::New(String::New("Double")); ^~~~~~ ../ext/bson.cc:621:44: error: 'New' is not a member of 'v8::String' timestampString = Persistent::New(String::New("Timestamp")); ^~~~~~ ../ext/bson.cc:622:41: error: 'New' is not a member of 'v8::String' minKeyString = Persistent::New(String::New("MinKey")); ^~~~~~ ../ext/bson.cc:623:41: error: 'New' is not a member of 'v8::String' maxKeyString = Persistent::New(String::New("MaxKey")); ^~~~~~ ../ext/bson.cc: In static member function 'static void BSON::Initialize(v8::Handle)': ../ext/bson.cc:629:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:631:55: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Handle (&)(const int&))' Local t = FunctionTemplate::New(New); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:5495:34: note: candidate: static v8::Local v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local, v8::Local, int, v8::ConstructorBehavior) static Local New( ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:5495:34: note: no known conversion for argument 1 from 'v8::Handle(const int&) {aka v8::Local(const int&)}' to 'v8::Isolate*' ../ext/bson.cc:632:60: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' constructor_template = Persistent::New(t); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::FunctionTemplate] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:633:22: error: base operand of '->' has non-pointer type 'v8::Persistent' constructor_template->InstanceTemplate()->SetInternalFieldCount(1); ^~ ../ext/bson.cc:634:22: error: base operand of '->' has non-pointer type 'v8::Persistent' constructor_template->SetClassName(String::NewSymbol("BSON")); ^~ ../ext/bson.cc:634:37: error: 'NewSymbol' is not a member of 'v8::String' constructor_template->SetClassName(String::NewSymbol("BSON")); ^~~~~~ ../ext/bson.cc:637:92: error: could not convert 'BSON::constructor_template' from 'v8::Persistent' to 'v8::Local' NODE_SET_PROTOTYPE_METHOD(constructor_template, "calculateObjectSize", CalculateObjectSize); ^ ../ext/bson.cc:638:76: error: could not convert 'BSON::constructor_template' from 'v8::Persistent' to 'v8::Local' NODE_SET_PROTOTYPE_METHOD(constructor_template, "serialize", BSONSerialize); ^ ../ext/bson.cc:639:108: error: could not convert 'BSON::constructor_template' from 'v8::Persistent' to 'v8::Local' NODE_SET_PROTOTYPE_METHOD(constructor_template, "serializeWithBufferAndIndex", SerializeWithBufferAndIndex); ^ ../ext/bson.cc:640:80: error: could not convert 'BSON::constructor_template' from 'v8::Persistent' to 'v8::Local' NODE_SET_PROTOTYPE_METHOD(constructor_template, "deserialize", BSONDeserialize); ^ ../ext/bson.cc:641:92: error: could not convert 'BSON::constructor_template' from 'v8::Persistent' to 'v8::Local' NODE_SET_PROTOTYPE_METHOD(constructor_template, "deserializeStream", BSONDeserializeStream); ^ ../ext/bson.cc:643:19: error: 'NewSymbol' is not a member of 'v8::String' target->ForceSet(String::NewSymbol("BSON"), constructor_template->GetFunction()); ^~~~~~ ../ext/bson.cc:643:66: error: base operand of '->' has non-pointer type 'v8::Persistent' target->ForceSet(String::NewSymbol("BSON"), constructor_template->GetFunction()); ^~ ../ext/bson.cc: At global scope: ../ext/bson.cc:647:31: error: 'Arguments' does not name a type Handle BSON::New(const Arguments &args) ^~~~~~~~~ ../ext/bson.cc: In static member function 'static v8::Handle BSON::New(const int&)': ../ext/bson.cc:649:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:652:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 1 && args[0]->IsArray()) ^~~~~~ ../ext/bson.cc:652:33: error: invalid types 'const int[int]' for array subscript if(args.Length() == 1 && args[0]->IsArray()) ^ ../ext/bson.cc:655:49: error: invalid types 'const int[int]' for array subscript Local array = Local::Cast(args[0]); ^ ../ext/bson.cc:671:51: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' if(functionName->StrictEquals(bson->longString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:672:60: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->longConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:674:62: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->objectIDString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:675:64: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->objectIDConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:677:60: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->binaryString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:678:62: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->binaryConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:680:58: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->codeString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:681:60: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->codeConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:683:59: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->dbrefString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:684:61: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->dbrefConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:686:60: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->symbolString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:687:62: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->symbolConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:689:60: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->doubleString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:690:62: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->doubleConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:692:63: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->timestampString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:693:65: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->timestampConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:695:60: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->minKeyString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:696:62: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->minKeyConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:698:60: error: no matching function for call to 'v8::String::StrictEquals(v8::Persistent&)' } else if(functionName->StrictEquals(bson->maxKeyString)) { ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: candidate: bool v8::Value::StrictEquals(v8::Local) const bool StrictEquals(Local that) const; ^~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2419:8: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' ../ext/bson.cc:699:62: error: no matching function for call to 'v8::Persistent::New(v8::Local&)' bson->maxKeyConstructor = Persistent::New(func); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^~~~~~~~~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:9227:4: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:709:21: error: request for member 'This' in 'args', which is of non-class type 'const int' bson->Wrap(args.This()); ^~~~ ../ext/bson.cc:710:17: error: request for member 'This' in 'args', which is of non-class type 'const int' return args.This(); ^~~~ ../ext/bson.cc: At global scope: ../ext/bson.cc:729:43: error: 'Arguments' does not name a type Handle BSON::BSONDeserialize(const Arguments &args) ^~~~~~~~~ ../ext/bson.cc: In static member function 'static v8::Handle BSON::BSONDeserialize(const int&)': ../ext/bson.cc:731:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:734:31: error: invalid types 'const int[int]' for array subscript if(Buffer::HasInstance(args[0]) && args.Length() > 1) return VException("One argument required - buffer1."); ^ ../ext/bson.cc:734:42: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(Buffer::HasInstance(args[0]) && args.Length() > 1) return VException("One argument required - buffer1."); ^~~~~~ ../ext/bson.cc:735:11: error: invalid types 'const int[int]' for array subscript if(args[0]->IsString() && args.Length() > 1) return VException("One argument required - string1."); ^ ../ext/bson.cc:735:33: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args[0]->IsString() && args.Length() > 1) return VException("One argument required - string1."); ^~~~~~ ../ext/bson.cc:737:32: error: invalid types 'const int[int]' for array subscript if(!Buffer::HasInstance(args[0]) && !args[0]->IsString()) return VException("Argument must be a Buffer or String."); ^ ../ext/bson.cc:737:45: error: invalid types 'const int[int]' for array subscript if(!Buffer::HasInstance(args[0]) && !args[0]->IsString()) return VException("Argument must be a Buffer or String."); ^ ../ext/bson.cc:740:28: error: invalid types 'const int[int]' for array subscript Local obj = args[0]->ToObject(); ^ ../ext/bson.cc:743:45: error: request for member 'This' in 'args', which is of non-class type 'const int' BSON *bson = ObjectWrap::Unwrap(args.This()); ^~~~ ../ext/bson.cc:776:35: error: invalid types 'const int[int]' for array subscript ssize_t len = DecodeBytes(args[0], BINARY); ^ ../ext/bson.cc:783:32: error: invalid types 'const int[int]' for array subscript DecodeWrite(data, len, args[0], BINARY); ^ ../ext/bson.cc: In member function 'v8::Local BSON::GetSerializeObject(v8::Handle&)': ../ext/bson.cc:806:30: error: no matching function for call to 'v8::Object::Has(v8::Persistent&)' if(object->Has(_toBSONString)) ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3198:47: note: candidate: bool v8::Object::Has(v8::Local) V8_DEPRECATE_SOON("Use maybe version", bool Has(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3198:47: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", bool Has(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3214:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3214:37: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3221:43: note: candidate: bool v8::Object::Has(uint32_t) V8_DEPRECATED("Use maybe version", bool Has(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3221:43: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATED("Use maybe version", bool Has(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED' declarator __attribute__((deprecated(message))) ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3222:37: note: candidate: v8::Maybe v8::Object::Has(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT Maybe Has(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3222:37: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc:808:57: error: no matching function for call to 'v8::Object::Get(v8::Persistent&)' const Local& toBSON = object->Get(_toBSONString); ^ In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: candidate: v8::Local v8::Object::Get(v8::Local) V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3172:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local' V8_DEPRECATE_SOON("Use maybe version", Local Get(Local key)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, v8::Local) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3173:43: note: candidate expects 2 arguments, 1 provided In file included from /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:26:0, from ../ext/bson.cc:14: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: candidate: v8::Local v8::Object::Get(uint32_t) V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3176:55: note: no known conversion for argument 1 from 'v8::Persistent' to 'uint32_t {aka unsigned int}' V8_DEPRECATE_SOON("Use maybe version", Local Get(uint32_t index)); ^ /home/lively/.cache/node-gyp/8.17.0/include/node/v8config.h:340:48: note: in definition of macro 'V8_DEPRECATE_SOON' #define V8_DEPRECATE_SOON(message, declarator) declarator ^~~~~~~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate: v8::MaybeLocal v8::Object::Get(v8::Local, uint32_t) V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:3177:43: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc: At global scope: ../ext/bson.cc:821:41: error: 'Arguments' does not name a type Handle BSON::BSONSerialize(const Arguments &args) ^~~~~~~~~ ../ext/bson.cc: In static member function 'static v8::Handle BSON::BSONSerialize(const int&)': ../ext/bson.cc:823:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:825:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 1 && !args[0]->IsObject()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^~~~~~ ../ext/bson.cc:825:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 1 && !args[0]->IsObject()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:826:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^~~~~~ ../ext/bson.cc:826:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:826:58: error: invalid types 'const int[int]' for array subscript if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:827:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 3 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^~~~~~ ../ext/bson.cc:827:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 3 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:827:58: error: invalid types 'const int[int]' for array subscript if(args.Length() == 3 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:827:83: error: invalid types 'const int[int]' for array subscript if(args.Length() == 3 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean]"); ^ ../ext/bson.cc:828:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^~~~~~ ../ext/bson.cc:828:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:828:58: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:828:83: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:828:108: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !args[2]->IsBoolean() && !args[3]->IsBoolean()) return VException("One, two or tree arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^ ../ext/bson.cc:829:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() > 4) return VException("One, two, tree or four arguments required - [object] or [object, boolean] or [object, boolean, boolean] or [object, boolean, boolean, boolean]"); ^~~~~~ ../ext/bson.cc:832:45: error: request for member 'This' in 'args', which is of non-class type 'const int' BSON *bson = ObjectWrap::Unwrap(args.This()); ^~~~ ../ext/bson.cc:836:34: error: request for member 'Length' in 'args', which is of non-class type 'const int' bool serializeFunctions = (args.Length() >= 4) && args[3]->BooleanValue(); ^~~~~~ ../ext/bson.cc:836:58: error: invalid types 'const int[int]' for array subscript bool serializeFunctions = (args.Length() >= 4) && args[3]->BooleanValue(); ^ ../ext/bson.cc:842:57: error: invalid types 'const int[int]' for array subscript Local object = bson->GetSerializeObject(args[0]); ^ ../ext/bson.cc:852:25: error: request for member 'Length' in 'args', which is of non-class type 'const int' bool checkKeys = args.Length() >= 3 && args[1]->IsBoolean() && args[1]->BooleanValue(); ^~~~~~ ../ext/bson.cc:852:48: error: invalid types 'const int[int]' for array subscript bool checkKeys = args.Length() >= 3 && args[1]->IsBoolean() && args[1]->BooleanValue(); ^ ../ext/bson.cc:852:72: error: invalid types 'const int[int]' for array subscript bool checkKeys = args.Length() >= 3 && args[1]->IsBoolean() && args[1]->BooleanValue(); ^ ../ext/bson.cc:865:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 3 || args.Length() == 4) ^~~~~~ ../ext/bson.cc:865:32: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 3 || args.Length() == 4) ^~~~~~ ../ext/bson.cc:867:10: error: expected primary-expression before '*' token Buffer *buffer = Buffer::New(serialized_object, object_size); ^ ../ext/bson.cc:867:11: error: 'buffer' was not declared in this scope Buffer *buffer = Buffer::New(serialized_object, object_size); ^~~~~~ ../ext/bson.cc:867:62: error: no matching function for call to 'New(char*&, size_t&)' Buffer *buffer = Buffer::New(serialized_object, object_size); ^ In file included from ../ext/bson.cc:24:0: /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:52:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, size_t length); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:52:40: note: no known conversion for argument 1 from 'char*' to 'v8::Isolate*' /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:55:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, v8::Local, node::encoding) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:55:40: note: no known conversion for argument 1 from 'char*' to 'v8::Isolate*' /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:60:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:60:40: note: candidate expects 5 arguments, 2 provided /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:67:40: note: candidate: v8::MaybeLocal node::Buffer::New(v8::Isolate*, char*, size_t) NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/node_buffer.h:67:40: note: candidate expects 3 arguments, 2 provided ../ext/bson.cc:869:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(buffer->handle_); ^~~~~ ../ext/bson.cc:873:73: warning: 'v8::Local node::Encode(const void*, size_t, node::encoding)' is deprecated: Use Encode(isolate, ...) [-Wdeprecated-declarations] Local bin_value = Encode(serialized_object, object_size, BINARY)->ToString(); ^ In file included from ../ext/bson.cc:22:0: /home/lively/.cache/node-gyp/8.17.0/include/node/node.h:385:45: note: declared here inline v8::Local Encode( ^ /home/lively/.cache/node-gyp/8.17.0/include/node/node.h:88:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^~~~~~~~~~ ../ext/bson.cc: At global scope: ../ext/bson.cc:879:47: error: 'Arguments' does not name a type Handle BSON::CalculateObjectSize(const Arguments &args) ^~~~~~~~~ ../ext/bson.cc: In static member function 'static v8::Handle BSON::CalculateObjectSize(const int&)': ../ext/bson.cc:881:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:883:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 1 && !args[0]->IsObject()) return VException("One argument required - [object]"); ^~~~~~ ../ext/bson.cc:883:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 1 && !args[0]->IsObject()) return VException("One argument required - [object]"); ^ ../ext/bson.cc:884:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return VException("Two arguments required - [object, boolean]"); ^~~~~~ ../ext/bson.cc:884:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return VException("Two arguments required - [object, boolean]"); ^ ../ext/bson.cc:884:58: error: invalid types 'const int[int]' for array subscript if(args.Length() == 2 && !args[0]->IsObject() && !args[1]->IsBoolean()) return VException("Two arguments required - [object, boolean]"); ^ ../ext/bson.cc:885:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() > 3) return VException("One or two arguments required - [object] or [object, boolean]"); ^~~~~~ ../ext/bson.cc:888:45: error: request for member 'This' in 'args', which is of non-class type 'const int' BSON *bson = ObjectWrap::Unwrap(args.This()); ^~~~ ../ext/bson.cc:889:34: error: request for member 'Length' in 'args', which is of non-class type 'const int' bool serializeFunctions = (args.Length() >= 2) && args[1]->BooleanValue(); ^~~~~~ ../ext/bson.cc:889:58: error: invalid types 'const int[int]' for array subscript bool serializeFunctions = (args.Length() >= 2) && args[1]->BooleanValue(); ^ ../ext/bson.cc:891:42: error: invalid types 'const int[int]' for array subscript countSerializer.SerializeDocument(args[0]); ^ ../ext/bson.cc:894:15: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Uint32::New((uint32_t) countSerializer.GetSerializeSize())); ^~~~~ ../ext/bson.cc:894:78: error: no matching function for call to 'v8::Uint32::New(uint32_t)' return scope.Close(Uint32::New((uint32_t) countSerializer.GetSerializeSize())); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc: At global scope: ../ext/bson.cc:897:55: error: 'Arguments' does not name a type Handle BSON::SerializeWithBufferAndIndex(const Arguments &args) ^~~~~~~~~ ../ext/bson.cc: In static member function 'static v8::Handle BSON::SerializeWithBufferAndIndex(const int&)': ../ext/bson.cc:899:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:903:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() > 5) return VException("Four or five parameters required [object, boolean, Buffer, int] or [object, boolean, Buffer, int, boolean]"); ^~~~~~ ../ext/bson.cc:904:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return VException("Four parameters required [object, boolean, Buffer, int]"); ^~~~~~ ../ext/bson.cc:904:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return VException("Four parameters required [object, boolean, Buffer, int]"); ^ ../ext/bson.cc:904:58: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return VException("Four parameters required [object, boolean, Buffer, int]"); ^ ../ext/bson.cc:904:103: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return VException("Four parameters required [object, boolean, Buffer, int]"); ^ ../ext/bson.cc:904:116: error: invalid types 'const int[int]' for array subscript if(args.Length() == 4 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32()) return VException("Four parameters required [object, boolean, Buffer, int]"); ^ ../ext/bson.cc:905:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return VException("Four parameters required [object, boolean, Buffer, int, boolean]"); ^~~~~~ ../ext/bson.cc:905:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return VException("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:905:58: error: invalid types 'const int[int]' for array subscript if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return VException("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:905:103: error: invalid types 'const int[int]' for array subscript if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return VException("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:905:116: error: invalid types 'const int[int]' for array subscript if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return VException("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:905:140: error: invalid types 'const int[int]' for array subscript if(args.Length() == 5 && !args[0]->IsObject() && !args[1]->IsBoolean() && !Buffer::HasInstance(args[2]) && !args[3]->IsUint32() && !args[4]->IsBoolean()) return VException("Four parameters required [object, boolean, Buffer, int, boolean]"); ^ ../ext/bson.cc:912:46: error: request for member 'This' in 'args', which is of non-class type 'const int' BSON *bson = ObjectWrap::Unwrap(args.This()); ^~~~ ../ext/bson.cc:914:29: error: invalid types 'const int[int]' for array subscript Local obj = args[2]->ToObject(); ^ ../ext/bson.cc:918:17: error: invalid types 'const int[int]' for array subscript index = args[3]->Uint32Value(); ^ ../ext/bson.cc:919:25: error: request for member 'Length' in 'args', which is of non-class type 'const int' bool checkKeys = args.Length() >= 4 && args[1]->IsBoolean() && args[1]->BooleanValue(); ^~~~~~ ../ext/bson.cc:919:48: error: invalid types 'const int[int]' for array subscript bool checkKeys = args.Length() >= 4 && args[1]->IsBoolean() && args[1]->BooleanValue(); ^ ../ext/bson.cc:919:72: error: invalid types 'const int[int]' for array subscript bool checkKeys = args.Length() >= 4 && args[1]->IsBoolean() && args[1]->BooleanValue(); ^ ../ext/bson.cc:920:35: error: request for member 'Length' in 'args', which is of non-class type 'const int' bool serializeFunctions = (args.Length() == 5) && args[4]->BooleanValue(); ^~~~~~ ../ext/bson.cc:920:59: error: invalid types 'const int[int]' for array subscript bool serializeFunctions = (args.Length() == 5) && args[4]->BooleanValue(); ^ ../ext/bson.cc:923:67: error: invalid types 'const int[int]' for array subscript dataSerializer.SerializeDocument(bson->GetSerializeObject(args[0])); ^ ../ext/bson.cc:935:15: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Uint32::New((uint32_t) (index + object_size - 1))); ^~~~~ ../ext/bson.cc:935:69: error: no matching function for call to 'v8::Uint32::New(uint32_t)' return scope.Close(Uint32::New((uint32_t) (index + object_size - 1))); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc: At global scope: ../ext/bson.cc:938:49: error: 'Arguments' does not name a type Handle BSON::BSONDeserializeStream(const Arguments &args) ^~~~~~~~~ ../ext/bson.cc: In static member function 'static v8::Handle BSON::BSONDeserializeStream(const int&)': ../ext/bson.cc:940:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc:943:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() < 5) return VException("Arguments required (Buffer(data), Number(index in data), Number(number of documents to deserialize), Array(results), Number(index in the array), Object(optional))"); ^~~~~~ ../ext/bson.cc:946:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() >= 5) ^~~~~~ ../ext/bson.cc:948:33: error: invalid types 'const int[int]' for array subscript if(!Buffer::HasInstance(args[0])) return VException("First argument must be Buffer instance"); ^ ../ext/bson.cc:949:13: error: invalid types 'const int[int]' for array subscript if(!args[1]->IsUint32()) return VException("Second argument must be a positive index number"); ^ ../ext/bson.cc:950:13: error: invalid types 'const int[int]' for array subscript if(!args[2]->IsUint32()) return VException("Third argument must be a positive number of documents to deserialize"); ^ ../ext/bson.cc:951:13: error: invalid types 'const int[int]' for array subscript if(!args[3]->IsArray()) return VException("Fourth argument must be an array the size of documents to deserialize"); ^ ../ext/bson.cc:952:13: error: invalid types 'const int[int]' for array subscript if(!args[4]->IsUint32()) return VException("Sixth argument must be a positive index number"); ^ ../ext/bson.cc:956:10: error: request for member 'Length' in 'args', which is of non-class type 'const int' if(args.Length() == 6 && !args[5]->IsObject()) return VException("Fifth argument must be an object with options"); ^~~~~~ ../ext/bson.cc:956:34: error: invalid types 'const int[int]' for array subscript if(args.Length() == 6 && !args[5]->IsObject()) return VException("Fifth argument must be an object with options"); ^ ../ext/bson.cc:959:28: error: invalid types 'const int[int]' for array subscript Local obj = args[0]->ToObject(); ^ ../ext/bson.cc:960:37: error: invalid types 'const int[int]' for array subscript uint32_t numberOfDocuments = args[2]->Uint32Value(); ^ ../ext/bson.cc:961:25: error: invalid types 'const int[int]' for array subscript uint32_t index = args[1]->Uint32Value(); ^ ../ext/bson.cc:962:31: error: invalid types 'const int[int]' for array subscript uint32_t resultIndex = args[4]->Uint32Value(); ^ ../ext/bson.cc:965:45: error: request for member 'This' in 'args', which is of non-class type 'const int' BSON *bson = ObjectWrap::Unwrap(args.This()); ^~~~ ../ext/bson.cc:978:34: error: invalid types 'const int[int]' for array subscript Local documents = args[3]->ToObject(); ^ ../ext/bson.cc:996:15: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(Uint32::New((uint32_t) (index + deserializer.GetSerializeSize()))); ^~~~~ ../ext/bson.cc:996:85: error: no matching function for call to 'v8::Uint32::New(uint32_t)' return scope.Close(Uint32::New((uint32_t) (index + deserializer.GetSerializeSize()))); ^ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^~~ /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:2979:25: note: candidate expects 2 arguments, 1 provided ../ext/bson.cc: In function 'void init(v8::Handle)': ../ext/bson.cc:1002:14: error: 'v8::HandleScope::HandleScope()' is protected within this context HandleScope scope; ^~~~~ In file included from ../ext/bson.cc:14:0: /home/lively/.cache/node-gyp/8.17.0/include/node/v8.h:876:13: note: declared protected here V8_INLINE HandleScope() {} ^~~~~~~~~~~ ../ext/bson.cc: In instantiation of 'void BSONSerializer::SerializeValue(void*, v8::Handle&) [with T = CountStream; v8::Handle = v8::Local]': ../ext/bson.cc:107:18: required from 'void BSONSerializer::SerializeDocument(v8::Handle&) [with T = CountStream; v8::Handle = v8::Local]' ../ext/bson.cc:845:35: required from here ../ext/bson.cc:200:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longLowString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:131:7: note: candidate: void CountStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:131:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:132:7: note: candidate: void CountStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:132:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:133:7: note: candidate: void CountStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:133:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:201:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longHighString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:131:7: note: candidate: void CountStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:131:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:132:7: note: candidate: void CountStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:132:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:133:7: note: candidate: void CountStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:133:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:206:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longLowString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:131:7: note: candidate: void CountStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:131:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:132:7: note: candidate: void CountStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:132:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:133:7: note: candidate: void CountStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:133:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:207:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longHighString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:131:7: note: candidate: void CountStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:131:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:132:7: note: candidate: void CountStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:132:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:133:7: note: candidate: void CountStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { count += 4; } ^~~~~~~~~~ ../ext/bson.h:133:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:212:5: error: no matching function for call to 'BSONSerializer::WriteObjectId(const v8::Local&, v8::Persistent&)' this->WriteObjectId(object, bson->_objectIDidString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:141:7: note: candidate: void CountStream::WriteObjectId(v8::Handle&, v8::Handle&) void WriteObjectId(const Handle& object, const Handle& key) { count += 12; } ^~~~~~~~~~~~~ ../ext/bson.h:141:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:222:5: error: no matching function for call to 'BSONSerializer::WriteByte(const v8::Local&, v8::Persistent&)' this->WriteByte(object, bson->_binarySubTypeString); // write subtype ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:128:7: note: candidate: void CountStream::WriteByte(int) void WriteByte(int value) { ++count; } ^~~~~~~~~ ../ext/bson.h:128:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:129:7: note: candidate: void CountStream::WriteByte(v8::Handle&, v8::Handle&) void WriteByte(const Handle&, const Handle&) { ++count; } ^~~~~~~~~ ../ext/bson.h:129:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:233:5: error: no matching function for call to 'BSONSerializer::WriteDouble(const v8::Local&, v8::Persistent&)' this->WriteDouble(object, bson->_doubleValueString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:136:7: note: candidate: void CountStream::WriteDouble(double) void WriteDouble(double value) { count += 8; } ^~~~~~~~~~~ ../ext/bson.h:136:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:137:7: note: candidate: void CountStream::WriteDouble(v8::Handle&) void WriteDouble(const Handle& value) { count += 8; } ^~~~~~~~~~~ ../ext/bson.h:137:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:138:7: note: candidate: void CountStream::WriteDouble(v8::Handle&, v8::Handle&) void WriteDouble(const Handle&, const Handle&) { count += 8; } ^~~~~~~~~~~ ../ext/bson.h:138:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc: In instantiation of 'void BSONSerializer::SerializeValue(void*, v8::Handle&) [with T = DataStream; v8::Handle = v8::Local]': ../ext/bson.cc:107:18: required from 'void BSONSerializer::SerializeDocument(v8::Handle&) [with T = DataStream; v8::Handle = v8::Local]' ../ext/bson.cc:854:32: required from here ../ext/bson.cc:200:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longLowString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:167:7: note: candidate: void DataStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { *reinterpret_cast(p) = value; p += 4; } ^~~~~~~~~~ ../ext/bson.h:167:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:176:7: note: candidate: void DataStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { WriteInt32(value->Int32Value()); } ^~~~~~~~~~ ../ext/bson.h:176:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:177:7: note: candidate: void DataStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { WriteInt32(object->Get(key)); } ^~~~~~~~~~ ../ext/bson.h:177:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:201:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longHighString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:167:7: note: candidate: void DataStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { *reinterpret_cast(p) = value; p += 4; } ^~~~~~~~~~ ../ext/bson.h:167:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:176:7: note: candidate: void DataStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { WriteInt32(value->Int32Value()); } ^~~~~~~~~~ ../ext/bson.h:176:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:177:7: note: candidate: void DataStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { WriteInt32(object->Get(key)); } ^~~~~~~~~~ ../ext/bson.h:177:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:206:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longLowString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:167:7: note: candidate: void DataStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { *reinterpret_cast(p) = value; p += 4; } ^~~~~~~~~~ ../ext/bson.h:167:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:176:7: note: candidate: void DataStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { WriteInt32(value->Int32Value()); } ^~~~~~~~~~ ../ext/bson.h:176:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:177:7: note: candidate: void DataStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { WriteInt32(object->Get(key)); } ^~~~~~~~~~ ../ext/bson.h:177:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:207:5: error: no matching function for call to 'BSONSerializer::WriteInt32(const v8::Local&, v8::Persistent&)' this->WriteInt32(object, bson->_longHighString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:167:7: note: candidate: void DataStream::WriteInt32(int32_t) void WriteInt32(int32_t value) { *reinterpret_cast(p) = value; p += 4; } ^~~~~~~~~~ ../ext/bson.h:167:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:176:7: note: candidate: void DataStream::WriteInt32(v8::Handle&) void WriteInt32(const Handle& value) { WriteInt32(value->Int32Value()); } ^~~~~~~~~~ ../ext/bson.h:176:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:177:7: note: candidate: void DataStream::WriteInt32(v8::Handle&, v8::Handle&) void WriteInt32(const Handle& object, const Handle& key) { WriteInt32(object->Get(key)); } ^~~~~~~~~~ ../ext/bson.h:177:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:212:5: error: no matching function for call to 'BSONSerializer::WriteObjectId(const v8::Local&, v8::Persistent&)' this->WriteObjectId(object, bson->_objectIDidString); ^~~~ ../ext/bson.cc:42:6: note: candidate: void DataStream::WriteObjectId(v8::Handle&, v8::Handle&) void DataStream::WriteObjectId(const Handle& object, const Handle& key) ^~~~~~~~~~ ../ext/bson.cc:42:6: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:222:5: error: no matching function for call to 'BSONSerializer::WriteByte(const v8::Local&, v8::Persistent&)' this->WriteByte(object, bson->_binarySubTypeString); // write subtype ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:164:7: note: candidate: void DataStream::WriteByte(int) void WriteByte(int value) { *p++ = value; } ^~~~~~~~~ ../ext/bson.h:164:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:165:7: note: candidate: void DataStream::WriteByte(v8::Handle&, v8::Handle&) void WriteByte(const Handle& object, const Handle& key) { *p++ = object->Get(key)->Int32Value(); } ^~~~~~~~~ ../ext/bson.h:165:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc:233:5: error: no matching function for call to 'BSONSerializer::WriteDouble(const v8::Local&, v8::Persistent&)' this->WriteDouble(object, bson->_doubleValueString); ^~~~ In file included from ../ext/bson.cc:35:0: ../ext/bson.h:169:7: note: candidate: void DataStream::WriteDouble(double) void WriteDouble(double value) { *reinterpret_cast(p) = value; p += 8; } ^~~~~~~~~~~ ../ext/bson.h:169:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:179:7: note: candidate: void DataStream::WriteDouble(v8::Handle&) void WriteDouble(const Handle& value) { WriteDouble(value->NumberValue()); } ^~~~~~~~~~~ ../ext/bson.h:179:7: note: candidate expects 1 argument, 2 provided ../ext/bson.h:180:7: note: candidate: void DataStream::WriteDouble(v8::Handle&, v8::Handle&) void WriteDouble(const Handle& object, const Handle& key) { WriteDouble(object->Get(key)); } ^~~~~~~~~~~ ../ext/bson.h:180:7: note: no known conversion for argument 2 from 'v8::Persistent' to 'v8::Handle& {aka const v8::Local&}' ../ext/bson.cc: In member function 'v8::Local BSON::GetSerializeObject(v8::Handle&)': ../ext/bson.cc:819:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/bson/ext/bson.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) gyp ERR! System Linux 5.0.0-1028-azure gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/lively/LivelyKernel/node_modules/bson gyp ERR! node -v v8.17.0 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok