You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CXX(target) Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:140:90: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { count += value->Utf8Length()+5; }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:142:80: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteString(const Local& value) { count += value->Utf8Length() + 1; } // This return...
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:165:92: error: no matching member function for call to 'Get'
void WriteByte(const Local& object, const Local& key) { p++ = object->Get(key)->Int32Value(); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:175:83: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteBool(const Local& value) { WriteByte(value->BooleanValue() ? 1 : 0); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2771:3: note: 'BooleanValue' declared here
bool BooleanValue(Isolate isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:176:83: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt32(const Local& value) { WriteInt32(value->Int32Value()); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:177:97: error: no matching member function for call to 'Get'
void WriteInt32(const Local& object, const Local& key) { WriteInt32(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:178:85: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt64(const Local& value) { WriteInt64(value->IntegerValue()); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2774:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:179:86: error: too few arguments to function call, single argument 'context' was not specified
void WriteDouble(const Local& value) { WriteDouble(value->NumberValue()); }
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2773:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:180:99: error: no matching member function for call to 'Get'
void WriteDouble(const Local& object, const Local& key) { WriteDouble(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:182:92: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { WriteInt32(value->Utf8Length()+1); WriteString(value); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:184:76: error: too few arguments to function call, expected at least 2, have 1
void WriteString(const Local& value) { p += value->WriteUtf8(p); } // This return...
~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:51:10: error: no matching member function for call to 'Get'
object->Get(key)->ToString()->Write(buffer, 0, 12);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:71:41: error: too few arguments to function call, single argument 'isolate' was not specified
size_t keyLength = keyName->Utf8Length();
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:77:36: error: too few arguments to function call, expected at least 2, have 1
keyName->WriteUtf8(keyStringBuffer);
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:103:40: error: no matching member function for call to 'GetPropertyNames'
Local propertyNames = object->GetPropertyNames();
~~~~~~~~^~~~~~~~~~~~~~~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3702:43: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3704:43: note: candidate function not viable: requires at least 4 arguments, but
0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:54: error: no matching member function for call to 'Get'
const Local& propertyName = propertyNames->Get(i)->ToString();
~~~~~~~~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:112:47: error: no matching member function for call to 'Get'
const Local& propertyValue = object->Get(propertyName);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:58: error: too few arguments to function call, single argument 'context' was not specified
Local array = Local::Cast(value->ToObject());
~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:137:39: error: no matching member function for call to 'Get'
SerializeValue(typeLocation, array->Get(i));
~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.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 ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
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 /Users/saurabhkumar/Desktop/Node/advance_node/section_2/node_modules/webworker-threads
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
saurabhkumar@Saurabhs-MacBook-Pro section_2 % sudo npm i webworker-threads --save
Password:
CXX(target) Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:140:90: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { count += value->Utf8Length()+5; }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:142:80: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteString(const Local& value) { count += value->Utf8Length() + 1; } // This return...
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:165:92: error: no matching member function for call to 'Get'
void WriteByte(const Local& object, const Local& key) { p++ = object->Get(key)->Int32Value(); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:175:83: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteBool(const Local& value) { WriteByte(value->BooleanValue() ? 1 : 0); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2771:3: note: 'BooleanValue' declared here
bool BooleanValue(Isolate isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:176:83: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt32(const Local& value) { WriteInt32(value->Int32Value()); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:177:97: error: no matching member function for call to 'Get'
void WriteInt32(const Local& object, const Local& key) { WriteInt32(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:178:85: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt64(const Local& value) { WriteInt64(value->IntegerValue()); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2774:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:179:86: error: too few arguments to function call, single argument 'context' was not specified
void WriteDouble(const Local& value) { WriteDouble(value->NumberValue()); }
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2773:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:180:99: error: no matching member function for call to 'Get'
void WriteDouble(const Local& object, const Local& key) { WriteDouble(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:182:92: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { WriteInt32(value->Utf8Length()+1); WriteString(value); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:184:76: error: too few arguments to function call, expected at least 2, have 1
void WriteString(const Local& value) { p += value->WriteUtf8(p); } // This return...
~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:51:10: error: no matching member function for call to 'Get'
object->Get(key)->ToString()->Write(buffer, 0, 12);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:71:41: error: too few arguments to function call, single argument 'isolate' was not specified
size_t keyLength = keyName->Utf8Length();
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:77:36: error: too few arguments to function call, expected at least 2, have 1
keyName->WriteUtf8(keyStringBuffer);
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:103:40: error: no matching member function for call to 'GetPropertyNames'
Local propertyNames = object->GetPropertyNames();
~~~~~~~~^~~~~~~~~~~~~~~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3702:43: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3704:43: note: candidate function not viable: requires at least 4 arguments, but
0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:54: error: no matching member function for call to 'Get'
const Local& propertyName = propertyNames->Get(i)->ToString();
~~~~~~~~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:112:47: error: no matching member function for call to 'Get'
const Local& propertyValue = object->Get(propertyName);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:58: error: too few arguments to function call, single argument 'context' was not specified
Local array = Local::Cast(value->ToObject());
~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:137:39: error: no matching member function for call to 'Get'
SerializeValue(typeLocation, array->Get(i));
~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.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 ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
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 /Users/saurabhkumar/Desktop/Node/advance_node/section_2/node_modules/webworker-threads
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/saurabhkumar/.npm/_logs/2020-04-24T18_15_17_865Z-debug.log
The text was updated successfully, but these errors were encountered:
[email protected] install /Users/saurabhkumar/Desktop/Node/advance_node/section_2/node_modules/webworker-threads
CXX(target) Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:140:90: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { count += value->Utf8Length()+5; }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:142:80: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteString(const Local& value) { count += value->Utf8Length() + 1; } // This return...
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:165:92: error: no matching member function for call to 'Get'
void WriteByte(const Local& object, const Local& key) { p++ = object->Get(key)->Int32Value(); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:175:83: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteBool(const Local& value) { WriteByte(value->BooleanValue() ? 1 : 0); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2771:3: note: 'BooleanValue' declared here
bool BooleanValue(Isolate isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:176:83: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt32(const Local& value) { WriteInt32(value->Int32Value()); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:177:97: error: no matching member function for call to 'Get'
void WriteInt32(const Local& object, const Local& key) { WriteInt32(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:178:85: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt64(const Local& value) { WriteInt64(value->IntegerValue()); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2774:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:179:86: error: too few arguments to function call, single argument 'context' was not specified
void WriteDouble(const Local& value) { WriteDouble(value->NumberValue()); }
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2773:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:180:99: error: no matching member function for call to 'Get'
void WriteDouble(const Local& object, const Local& key) { WriteDouble(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:182:92: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { WriteInt32(value->Utf8Length()+1); WriteString(value); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:184:76: error: too few arguments to function call, expected at least 2, have 1
void WriteString(const Local& value) { p += value->WriteUtf8(p); } // This return...
~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:51:10: error: no matching member function for call to 'Get'
object->Get(key)->ToString()->Write(buffer, 0, 12);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:71:41: error: too few arguments to function call, single argument 'isolate' was not specified
size_t keyLength = keyName->Utf8Length();
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:77:36: error: too few arguments to function call, expected at least 2, have 1
keyName->WriteUtf8(keyStringBuffer);
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:103:40: error: no matching member function for call to 'GetPropertyNames'
Local propertyNames = object->GetPropertyNames();
~~~~~~~~^~~~~~~~~~~~~~~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3702:43: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3704:43: note: candidate function not viable: requires at least 4 arguments, but
0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:54: error: no matching member function for call to 'Get'
const Local& propertyName = propertyNames->Get(i)->ToString();
~~~~~~~~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:112:47: error: no matching member function for call to 'Get'
const Local& propertyValue = object->Get(propertyName);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:58: error: too few arguments to function call, single argument 'context' was not specified
Local array = Local::Cast(value->ToObject());
~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:137:39: error: no matching member function for call to 'Get'
SerializeValue(typeLocation, array->Get(i));
~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
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 /Users/saurabhkumar/Desktop/Node/advance_node/section_2/node_modules/webworker-threads
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
saurabhkumar@Saurabhs-MacBook-Pro section_2 % sudo npm i webworker-threads --save
Password:
CXX(target) Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:140:90: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { count += value->Utf8Length()+5; }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:142:80: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteString(const Local& value) { count += value->Utf8Length() + 1; } // This return...
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:165:92: error: no matching member function for call to 'Get'
void WriteByte(const Local& object, const Local& key) { p++ = object->Get(key)->Int32Value(); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:175:83: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteBool(const Local& value) { WriteByte(value->BooleanValue() ? 1 : 0); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2771:3: note: 'BooleanValue' declared here
bool BooleanValue(Isolate isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:176:83: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt32(const Local& value) { WriteInt32(value->Int32Value()); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2778:3: note: 'Int32Value' declared here
V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:177:97: error: no matching member function for call to 'Get'
void WriteInt32(const Local& object, const Local& key) { WriteInt32(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:178:85: error: too few arguments to function call, single argument 'context' was not specified
void WriteInt64(const Local& value) { WriteInt64(value->IntegerValue()); }
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2774:3: note: 'IntegerValue' declared here
V8_WARN_UNUSED_RESULT Maybe<int64_t> IntegerValue(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:179:86: error: too few arguments to function call, single argument 'context' was not specified
void WriteDouble(const Local& value) { WriteDouble(value->NumberValue()); }
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2773:3: note: 'NumberValue' declared here
V8_WARN_UNUSED_RESULT Maybe NumberValue(Local context) const;
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:180:99: error: no matching member function for call to 'Get'
void WriteDouble(const Local& object, const Local& key) { WriteDouble(object->Get(key)); }
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:182:92: error: too few arguments to function call, single argument 'isolate' was not specified
void WriteLengthPrefixedString(const Local& value) { WriteInt32(value->Utf8Length()+1); WriteString(value); }
~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
In file included from ../src/bson.cc:41:
../src/bson.h:184:76: error: too few arguments to function call, expected at least 2, have 1
void WriteString(const Local& value) { p += value->WriteUtf8(p); } // This return...
~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:51:10: error: no matching member function for call to 'Get'
object->Get(key)->ToString()->Write(buffer, 0, 12);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:71:41: error: too few arguments to function call, single argument 'isolate' was not specified
size_t keyLength = keyName->Utf8Length();
~~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2887:3: note: 'Utf8Length' declared here
int Utf8Length(Isolate* isolate) const;
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:77:36: error: too few arguments to function call, expected at least 2, have 1
keyName->WriteUtf8(keyStringBuffer);
~~~~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2947:3: note: 'WriteUtf8' declared here
int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:103:40: error: no matching member function for call to 'GetPropertyNames'
Local propertyNames = object->GetPropertyNames();
~~~~~~~~^~~~~~~~~~~~~~~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3702:43: note: candidate function not viable: requires single argument 'context',
but no arguments were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3704:43: note: candidate function not viable: requires at least 4 arguments, but
0 were provided
V8_WARN_UNUSED_RESULT MaybeLocal GetPropertyNames(
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:109:54: error: no matching member function for call to 'Get'
const Local& propertyName = propertyNames->Get(i)->ToString();
~~~~~~~~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:112:47: error: no matching member function for call to 'Get'
const Local& propertyValue = object->Get(propertyName);
~~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:130:58: error: too few arguments to function call, single argument 'context' was not specified
Local array = Local::Cast(value->ToObject());
~~~~~~~~~~~~~~~ ^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:2754:3: note: 'ToObject' declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToObject(
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8config.h:419:31: note: expanded from macro 'V8_WARN_UNUSED_RESULT'
#define V8_WARN_UNUSED_RESULT attribute((warn_unused_result))
^
In file included from ../src/WebWorkerThreads.cc:17:
../src/bson.cc:137:39: error: no matching member function for call to 'Get'
SerializeValue(typeLocation, array->Get(i));
~~~~~~~^~~
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3594:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
/Users/saurabhkumar/Library/Caches/node-gyp/13.12.0/include/node/v8.h:3597:43: note: candidate function not viable: requires 2 arguments, but 1 was
provided
V8_WARN_UNUSED_RESULT MaybeLocal Get(Local context,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/WebWorkerThreads/src/WebWorkerThreads.o] Error 1
gyp ERR! build error
gyp ERR! stack Error:
make
failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.4.0
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 /Users/saurabhkumar/Desktop/Node/advance_node/section_2/node_modules/webworker-threads
gyp ERR! node -v v13.12.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install:
node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/saurabhkumar/.npm/_logs/2020-04-24T18_15_17_865Z-debug.log
The text was updated successfully, but these errors were encountered: