When trying to add this simple change https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/739753
The following three failures has occurred
- https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php73-selenium-docker/12218/consoleFull
- https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php73-selenium-docker/12221/consoleFull
- https://integration.wikimedia.org/ci/job/quibble-composer-mysql-php73-selenium-docker/12227/consoleFull
They all fail as the MobileFrontend tests should start
```
Selenium extensions/MobileFrontend
Hide Details
12:15:48 INFO:quibble.commands:Running webdriver test in /workspace/src/extensions/MobileFrontend
12:15:50 npm WARN old lockfile
12:15:50 npm WARN old lockfile The package-lock.json file was created with an old version of npm,
12:15:50 npm WARN old lockfile so supplemental metadata must be fetched from the registry.
12:15:50 npm WARN old lockfile
12:15:50 npm WARN old lockfile This is a one-time fix-up, please be patient...
12:15:50 npm WARN old lockfile
12:16:05 npm WARN EBADENGINE Unsupported engine {
12:16:05 npm WARN EBADENGINE package: undefined,
12:16:05 npm WARN EBADENGINE required: { node: '10.15.2' },
12:16:05 npm WARN EBADENGINE current: { node: 'v14.17.5', npm: '7.21.0' }
12:16:05 npm WARN EBADENGINE }
12:16:16 npm WARN deprecated request-promise-native@1.0.8: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
12:16:16 npm WARN deprecated @stylelint/postcss-markdown@0.36.2: Use the original unforked package instead: postcss-markdown
12:16:16 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
12:16:16 npm WARN deprecated har-validator@5.1.3: this library is no longer supported
12:16:17 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
12:16:18 npm WARN deprecated sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
12:16:18 npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
12:16:18 npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
12:16:18 npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
12:16:18 npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
12:16:18 npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
12:16:18 npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
12:16:19 npm WARN deprecated uuid@3.3.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
12:16:19 npm WARN deprecated samsam@1.3.0: This package has been deprecated in favour of @sinonjs/samsam
12:16:20 npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
12:16:20 npm WARN deprecated request@2.88.0: request has been deprecated, see https://github.com/request/request/issues/3142
12:16:29 npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
12:16:38 npm WARN deprecated popper.js@1.16.0: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
12:16:39 npm WARN deprecated cucumber@4.2.1: The npm package has moved to @cucumber/cucumber
12:16:40 npm WARN deprecated iltorb@2.4.5: The zlib module provides APIs for brotli compression/decompression starting with Node.js v10.16.0, please use it over iltorb
12:16:41 npm WARN deprecated highlight.js@9.12.0: Version no longer supported. Upgrade to @latest
12:16:47 npm WARN deprecated webdriverio@4.13.1: outdated version, please use @next
12:16:51 npm WARN deprecated core-js@1.2.7: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
12:16:59 npm WARN deprecated core-js@2.6.11: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
12:17:13 npm ERR! code 1
12:17:13 npm ERR! path /workspace/src/extensions/MobileFrontend/node_modules/fibers
12:17:13 npm ERR! command failed
12:17:13 npm ERR! command sh -c node build.js || nodejs build.js
12:17:13 npm ERR! make: Entering directory '/workspace/src/extensions/MobileFrontend/node_modules/fibers/build'
12:17:13 npm ERR! CXX(target) Release/obj.target/fibers/src/fibers.o
12:17:13 npm ERR! make: Leaving directory '/workspace/src/extensions/MobileFrontend/node_modules/fibers/build'
12:17:13 npm ERR! make: Entering directory '/workspace/src/extensions/MobileFrontend/node_modules/fibers/build'
12:17:13 npm ERR! CXX(target) Release/obj.target/fibers/src/fibers.o
12:17:13 npm ERR! make: Leaving directory '/workspace/src/extensions/MobileFrontend/node_modules/fibers/build'
12:17:13 npm ERR! gyp info it worked if it ends with ok
12:17:13 npm ERR! gyp info using node-gyp@7.1.2
12:17:13 npm ERR! gyp info using node@14.17.5 | linux | x64
12:17:13 npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
12:17:13 npm ERR! gyp info spawn /usr/bin/python3
12:17:13 npm ERR! gyp info spawn args [
12:17:13 npm ERR! gyp info spawn args '/srv/npm/node_modules/node-gyp/gyp/gyp_main.py',
12:17:13 npm ERR! gyp info spawn args 'binding.gyp',
12:17:13 npm ERR! gyp info spawn args '-f',
12:17:13 npm ERR! gyp info spawn args 'make',
12:17:13 npm ERR! gyp info spawn args '-I',
12:17:13 npm ERR! gyp info spawn args '/workspace/src/extensions/MobileFrontend/node_modules/fibers/build/config.gypi',
12:17:13 npm ERR! gyp info spawn args '-I',
12:17:13 npm ERR! gyp info spawn args '/srv/npm/node_modules/node-gyp/addon.gypi',
12:17:13 npm ERR! gyp info spawn args '-I',
12:17:13 npm ERR! gyp info spawn args '/cache/node-gyp/14.17.5/include/node/common.gypi',
12:17:13 npm ERR! gyp info spawn args '-Dlibrary=shared_library',
12:17:13 npm ERR! gyp info spawn args '-Dvisibility=default',
12:17:13 npm ERR! gyp info spawn args '-Dnode_root_dir=/cache/node-gyp/14.17.5',
12:17:13 npm ERR! gyp info spawn args '-Dnode_gyp_dir=/srv/npm/node_modules/node-gyp',
12:17:13 npm ERR! gyp info spawn args '-Dnode_lib_file=/cache/node-gyp/14.17.5/<(target_arch)/node.lib',
12:17:13 npm ERR! gyp info spawn args '-Dmodule_root_dir=/workspace/src/extensions/MobileFrontend/node_modules/fibers',
12:17:13 npm ERR! gyp info spawn args '-Dnode_engine=v8',
12:17:13 npm ERR! gyp info spawn args '--depth=.',
12:17:13 npm ERR! gyp info spawn args '--no-parallel',
12:17:13 npm ERR! gyp info spawn args '--generator-output',
12:17:13 npm ERR! gyp info spawn args 'build',
12:17:13 npm ERR! gyp info spawn args '-Goutput_dir=.'
12:17:13 npm ERR! gyp info spawn args ]
12:17:13 npm ERR! gyp info spawn make
12:17:13 npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
12:17:13 npm ERR! ../src/fibers.cc:68:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:72:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:94:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:104:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Number> ToNumber(Local<Value> value) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:114:50: error: ‘Handle’ has not been declared
12:17:13 npm ERR! Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:114:56: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In function ‘v8::Local<v8::Value> uni::GetStackTrace(uni::TryCatch*, int)’:
12:17:13 npm ERR! ../src/fibers.cc:115:32: error: ‘context’ was not declared in this scope
12:17:13 npm ERR! return try_catch->StackTrace(context).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:115:32: note: suggested alternative: ‘setcontext’
12:17:13 npm ERR! return try_catch->StackTrace(context).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! setcontext
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:127:39: error: ‘Handle’ has not been declared
12:17:13 npm ERR! void fixStackLimit(Isolate* isolate, Handle<Context> context) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:127:45: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! void fixStackLimit(Isolate* isolate, Handle<Context> context) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In function ‘void uni::fixStackLimit(v8::Isolate*, int)’:
12:17:13 npm ERR! ../src/fibers.cc:128:19: error: ‘context’ was not declared in this scope
12:17:13 npm ERR! Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:128:19: note: suggested alternative: ‘setcontext’
12:17:13 npm ERR! Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! setcontext
12:17:13 npm ERR! ../src/fibers.cc:128:33: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:149:58: error: ‘Handle’ has not been declared
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:64: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In function ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’:
12:17:13 npm ERR! ../src/fibers.cc:150:29: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! persistent.Reset(isolate, handle);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:150:29: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! persistent.Reset(isolate, handle);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:162:26: error: variable or field ‘SetInternalPointer’ declared void
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:162:26: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:162:26: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:162:34: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:162:36: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:162:36: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:162:44: error: expected primary-expression before ‘int’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:162:55: error: expected primary-expression before ‘void’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:166:27: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:166:27: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:166:35: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:166:37: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:166:37: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:166:45: error: expected primary-expression before ‘int’
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:166:54: error: expression list treated as compound expression in initializer [-fpermissive]
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:166:55: error: expected ‘;’ before ‘{’ token
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ;
12:17:13 npm ERR! ../src/fibers.cc:171:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<T> Deref(Isolate* isolate, Persistent<T>& handle) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:176:14: error: variable or field ‘Return’ declared void
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:176:14: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:176:14: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:176:22: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:176:24: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:176:24: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:176:32: error: expected primary-expression before ‘const’
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:180:14: error: variable or field ‘Return’ declared void
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:180:14: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:180:14: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:180:22: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:180:24: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:180:24: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:180:51: error: expected primary-expression before ‘info’
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:188:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Value> ThrowException(Isolate* isolate, Handle<Value> exception) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:192:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Context> GetCurrentContext(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:196:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:200:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Boolean> NewBoolean(Isolate* isolate, bool value) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:204:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Number> NewNumber(Isolate* isolate, double value) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:208:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<FunctionTemplate> NewFunctionTemplate(
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:218:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Signature> NewSignature(
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc: In function ‘void uni::SetAccessor(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&))’:
12:17:13 npm ERR! ../src/fibers.cc:341:87: warning: cast between incompatible function types from ‘uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::AccessorNameGetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} [-Wcast-function-type]
12:17:13 npm ERR! object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:341:123: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} to ‘v8::AccessorNameSetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} [-Wcast-function-type]
12:17:13 npm ERR! object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:408:17: error: expected ‘;’ at end of member declaration
12:17:13 npm ERR! static Fiber& Unwrap(Handle<Object> handle) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ;
12:17:13 npm ERR! ../src/fibers.cc:408:30: error: expected ‘)’ before ‘<’ token
12:17:13 npm ERR! static Fiber& Unwrap(Handle<Object> handle) {
12:17:13 npm ERR! ~ ^
12:17:13 npm ERR! )
12:17:13 npm ERR! ../src/fibers.cc:414:15: error: expected ‘)’ before ‘<’ token
12:17:13 npm ERR! Fiber(Handle<Object> handle, Handle<Function> cb, Handle<Context> v8_context) :
12:17:13 npm ERR! ~ ^
12:17:13 npm ERR! )
12:17:13 npm ERR! ../src/fibers.cc:680:3: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Value> ReturnYielded() {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:842:20: error: ‘Handle’ has not been declared
12:17:13 npm ERR! static void Init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:842:26: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! static void Init(Handle<Object> target) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! In file included from ../src/fibers.cc:3:
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::WeakCallback(void*)’:
12:17:13 npm ERR! ../src/fibers.cc:458:23: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
12:17:13 npm ERR! assert(that.handle.IsNearDeath());
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’:
12:17:13 npm ERR! ../src/fibers.cc:495:22: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! auto stack(uni::Deref(that.isolate, fatal_stack));
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::New(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects 1 argument");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects 1 argument");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects 1 argument");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects a function");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects a function");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects a function");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:521:5: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:521:5: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:521:17: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:521:19: error: ‘argv’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:521:19: note: suggested alternative: ‘args’
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! args
12:17:13 npm ERR! ../src/fibers.cc:522:29: error: ‘NewInstance’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:522:69: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:522:134: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:525:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:525:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:525:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:525:21: error: ‘fn’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:525:41: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:525:44: error: ‘::Cast’ has not been declared
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:526:36: error: ‘GetCurrentContext’ is not a member of ‘uni’
12:17:13 npm ERR! new Fiber(args.This(), fn, uni::GetCurrentContext(Isolate::GetCurrent()));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:527:40: error: no matching function for call to ‘Return(v8::Local<v8::Object>, const Arguments&)’
12:17:13 npm ERR! return uni::Return(args.This(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:184:7: note: candidate: ‘template<class T> void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo)’
12:17:13 npm ERR! void Return(Persistent<T>& handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:184:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:527:40: note: ‘v8::Local<v8::Object>’ is not derived from ‘v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >’
12:17:13 npm ERR! return uni::Return(args.This(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:527:40: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Run(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:535:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(args.Holder());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is already running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is already running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is already running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "run() excepts 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "run() excepts 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "run() excepts 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::RangeError, "Out of memory");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::RangeError, "Out of memory");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::RangeError, "Out of memory");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:564:52: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:564:51: note: cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ~~~~~~^
12:17:13 npm ERR! ../src/fibers.cc:566:57: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:566:57: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:570:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:570:49: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::ThrowInto(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:577:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(args.Holder());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:582:56: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:582:56: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:584:51: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:584:50: note: cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ~~~~~~^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:590:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:590:49: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Reset(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:598:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(args.Holder());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:601:29: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::Undefined(that.isolate), args);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:601:29: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:601:58: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::Undefined(that.isolate), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "reset() expects no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "reset() expects no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "reset() expects no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:613:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:613:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:613:16: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:613:18: error: ‘val’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:613:29: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:616:29: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, val), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:616:68: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, val), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:618:33: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(val, args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In member function ‘void Fiber::UnwindStack()’:
12:17:13 npm ERR! ../src/fibers.cc:635:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:635:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:635:16: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:635:59: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:636:64: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)’
12:17:13 npm ERR! uni::Reset(isolate, this->zombie_exception, zombie_exception);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:636:48: note: cannot convert ‘((Fiber*)this)->Fiber::zombie_exception’ (type ‘v8::Persistent<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(isolate, this->zombie_exception, zombie_exception);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:637:49: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)’
12:17:13 npm ERR! uni::Reset(isolate, yielded, zombie_exception);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:637:33: note: cannot convert ‘((Fiber*)this)->Fiber::zombie_exception’ (type ‘v8::Persistent<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(isolate, yielded, zombie_exception);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:650:46: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! uni::Reset<Value>(isolate, yielded, uni::Undefined(isolate));
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:650:46: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::RunFiber(void**)’:
12:17:13 npm ERR! ../src/fibers.cc:712:5: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:712:5: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:712:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:712:21: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:712:39: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:713:5: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! v8_context->Enter();
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:715:38: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! uni::fixStackLimit(that.isolate, v8_context);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:717:17: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> yielded;
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:717:19: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! Handle<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:719:18: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> argv[1] = { (*args)[0] };
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:719:20: error: ‘argv’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> argv[1] = { (*args)[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:719:20: note: suggested alternative: ‘args’
12:17:13 npm ERR! Handle<Value> argv[1] = { (*args)[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! args
12:17:13 npm ERR! ../src/fibers.cc:720:6: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:720:21: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:720:56: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:722:6: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:722:21: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:722:56: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:726:66: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, try_catch.Exception());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:726:64: note: cannot convert ‘try_catch.uni::TryCatch::<anonymous>.v8::TryCatch::Exception()’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, try_catch.Exception());
12:17:13 npm ERR! ~~~~~~~~~~~~~~~~~~~^~
12:17:13 npm ERR! ../src/fibers.cc:728:50: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:728:103: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:730:76: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! uni::Reset(that.isolate, fatal_stack, uni::GetStackTrace(&try_catch, v8_context));
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:733:45: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, yielded);
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:748:5: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! v8_context->Exit();
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Yield_(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "yield() called with no fiber running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "yield() called with no fiber running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "yield() called with no fiber running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:769:29: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:769:63: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:769:112: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:771:74: error: no matching function for call to ‘Reset<v8::Value>(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Primitive>)’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:771:60: note: cannot convert ‘v8::Undefined(that.Fiber::isolate)’ (type ‘v8::Local<v8::Primitive>’) to type ‘int’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
12:17:13 npm ERR! ~~~~~~~~~^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:773:51: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:773:50: note: cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ~~~~~~^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "yield() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "yield() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "yield() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:798:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:798:49: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetStarted(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:806:29: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:806:29: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:317:27: note: ‘v8::Undefined’
12:17:13 npm ERR! friend Local<Primitive> Undefined(Isolate* isolate);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:806:67: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:808:36: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(info.This());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:809:28: error: ‘NewBoolean’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:809:72: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetCurrent(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:816:29: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:816:29: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:317:27: note: ‘v8::Undefined’
12:17:13 npm ERR! friend Local<Primitive> Undefined(Isolate* isolate);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:816:67: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetPoolSize(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:824:28: error: ‘NewNumber’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:824:88: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::SetPoolSize(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:828:32: error: ‘ToNumber’ is not a member of ‘uni’
12:17:13 npm ERR! Coroutine::pool_size = uni::ToNumber(value)->Value();
12:17:13 npm ERR! ^~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetFibersCreated(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:835:28: error: ‘NewNumber’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:835:99: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::Init(int)’:
12:17:13 npm ERR! ../src/fibers.cc:853:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:853:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:853:27: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:853:41: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:853:41: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:854:41: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::FunctionTemplate>&, v8::Persistent<v8::FunctionTemplate>&)’
12:17:13 npm ERR! uni::Reset(isolate, Fiber::tmpl, tmpl);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:854:37: note: cannot convert ‘Fiber::tmpl’ (type ‘v8::Persistent<v8::FunctionTemplate>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(isolate, Fiber::tmpl, tmpl);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:855:8: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:855:28: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:859:20: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:859:22: error: ‘sig’ was not declared in this scope
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:859:22: note: suggested alternative: ‘sig_t’
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! sig_t
12:17:13 npm ERR! ../src/fibers.cc:859:33: error: ‘NewSignature’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:860:8: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! tmpl->InstanceTemplate()->SetInternalFieldCount(1);
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:863:25: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:863:27: error: ‘proto’ was not declared in this scope
12:17:13 npm ERR! Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:863:39: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:864:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->Set(uni::NewLatin1Symbol(isolate, "reset"),
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:865:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:865:10: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:865:58: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:865:60: error: expected primary-expression before ‘)’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:866:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->Set(uni::NewLatin1Symbol(isolate, "run"),
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:867:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:867:10: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:867:56: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:867:58: error: expected primary-expression before ‘)’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:868:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->Set(uni::NewLatin1Symbol(isolate, "throwInto"),
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:869:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:869:10: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:869:62: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:869:64: error: expected primary-expression before ‘)’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:870:28: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->SetAccessor(uni::NewLatin1Symbol(isolate, "started"), GetStarted);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:873:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:873:21: error: ‘yield’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:873:21: note: suggested alternative: ‘yielded’
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! yielded
12:17:13 npm ERR! ../src/fibers.cc:873:34: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:873:34: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:874:17: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:874:19: error: ‘sym_yield’ was not declared in this scope
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:874:19: note: suggested alternative: ‘sched_yield’
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! sched_yield
12:17:13 npm ERR! ../src/fibers.cc:874:36: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:875:4: error: ‘target’ was not declared in this scope
12:17:13 npm ERR! target->Set(sym_yield, yield);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:875:4: note: suggested alternative: ‘started’
12:17:13 npm ERR! target->Set(sym_yield, yield);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! started
12:17:13 npm ERR! ../src/fibers.cc:878:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> fn = tmpl->GetFunction();
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:878:21: error: ‘fn’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> fn = tmpl->GetFunction();
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:878:30: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! Handle<Function> fn = tmpl->GetFunction();
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:880:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "current"), GetCurrent);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:881:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "poolSize"), GetPoolSize, SetPoolSize);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:882:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:885:21: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:901:11: error: variable or field ‘init’ declared void
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:901:11: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:901:11: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:901:24: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:901:26: error: ‘target’ was not declared in this scope
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:901:26: note: suggested alternative: ‘tzset’
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! tzset
12:17:13 npm ERR! In file included from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! ../src/fibers.cc:916:21: error: ‘init’ was not declared in this scope
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’
12:17:13 npm ERR! (node::addon_register_func) (regfunc), \
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:916:1: note: in expansion of macro ‘NODE_MODULE’
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:916:21: note: suggested alternative: ‘int’
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’
12:17:13 npm ERR! (node::addon_register_func) (regfunc), \
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:916:1: note: in expansion of macro ‘NODE_MODULE’
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In instantiation of ‘void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo) [with T = v8::Object; uni::GetterCallbackInfo = v8::PropertyCallbackInfo<v8::Value>]’:
12:17:13 npm ERR! ../src/fibers.cc:814:45: required from here
12:17:13 npm ERR! ../src/fibers.cc:185:3: error: no matching function for call to ‘v8::ReturnValue<v8::Value>::Set(v8::Persistent<v8::Object>&)’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4220:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(const v8::Global<S>&) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(const Global<S>& handle);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4220:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: ‘v8::Persistent<v8::Object>’ is not derived from ‘const v8::Global<T>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4222:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(const v8::TracedReferenceBase<S>&) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(const TracedReferenceBase<S>& handle);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4222:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: ‘v8::Persistent<v8::Object>’ is not derived from ‘const v8::TracedReferenceBase<T>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4224:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(v8::Local<S>) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(const Local<S> handle);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4224:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: ‘v8::Persistent<v8::Object>’ is not derived from ‘v8::Local<T>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11149:6: note: candidate: ‘void v8::ReturnValue<T>::Set(bool) [with T = v8::Value]’
12:17:13 npm ERR! void ReturnValue<T>::Set(bool value) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11149:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘bool’
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11120:6: note: candidate: ‘void v8::ReturnValue<T>::Set(double) [with T = v8::Value]’
12:17:13 npm ERR! void ReturnValue<T>::Set(double i) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11120:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘double’
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11126:6: note: candidate: ‘void v8::ReturnValue<T>::Set(int32_t) [with T = v8::Value; int32_t = int]’
12:17:13 npm ERR! void ReturnValue<T>::Set(int32_t i) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11126:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘int32_t’ {aka ‘int’}
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11137:6: note: candidate: ‘void v8::ReturnValue<T>::Set(uint32_t) [with T = v8::Value; uint32_t = unsigned int]’
12:17:13 npm ERR! void ReturnValue<T>::Set(uint32_t i) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11137:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘uint32_t’ {aka ‘unsigned int’}
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4239:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(S*) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(S* whatever);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4239:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: mismatched types ‘S*’ and ‘v8::Persistent<v8::Object>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! make: *** [fibers.target.mk:123: Release/obj.target/fibers/src/fibers.o] Error 1
12:17:13 npm ERR! gyp ERR! build error
12:17:13 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
12:17:13 npm ERR! gyp ERR! stack at ChildProcess.onExit (/srv/npm/node_modules/node-gyp/lib/build.js:194:23)
12:17:13 npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28)
12:17:13 npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
12:17:13 npm ERR! gyp ERR! System Linux 4.19.0-0.bpo.14-amd64
12:17:13 npm ERR! gyp ERR! command "/usr/bin/node" "/srv/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
12:17:13 npm ERR! gyp ERR! cwd /workspace/src/extensions/MobileFrontend/node_modules/fibers
12:17:13 npm ERR! gyp ERR! node -v v14.17.5
12:17:13 npm ERR! gyp ERR! node-gyp -v v7.1.2
12:17:13 npm ERR! gyp ERR! not ok
12:17:13 npm ERR! node-gyp exited with code: 1
12:17:13 npm ERR! Please make sure you are using a supported platform and node version. If you
12:17:13 npm ERR! would like to compile fibers on this machine please make sure you have setup your
12:17:13 npm ERR! build environment--
12:17:13 npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp
12:17:13 npm ERR! Ubuntu users please run: `sudo apt-get install g++ build-essential`
12:17:13 npm ERR! RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`
12:17:13 npm ERR! Alpine users please run: `sudo apk add python make g++`
12:17:13 npm ERR! gyp info it worked if it ends with ok
12:17:13 npm ERR! gyp info using node-gyp@7.1.2
12:17:13 npm ERR! gyp info using node@14.17.5 | linux | x64
12:17:13 npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
12:17:13 npm ERR! gyp info spawn /usr/bin/python3
12:17:13 npm ERR! gyp info spawn args [
12:17:13 npm ERR! gyp info spawn args '/srv/npm/node_modules/node-gyp/gyp/gyp_main.py',
12:17:13 npm ERR! gyp info spawn args 'binding.gyp',
12:17:13 npm ERR! gyp info spawn args '-f',
12:17:13 npm ERR! gyp info spawn args 'make',
12:17:13 npm ERR! gyp info spawn args '-I',
12:17:13 npm ERR! gyp info spawn args '/workspace/src/extensions/MobileFrontend/node_modules/fibers/build/config.gypi',
12:17:13 npm ERR! gyp info spawn args '-I',
12:17:13 npm ERR! gyp info spawn args '/srv/npm/node_modules/node-gyp/addon.gypi',
12:17:13 npm ERR! gyp info spawn args '-I',
12:17:13 npm ERR! gyp info spawn args '/cache/node-gyp/14.17.5/include/node/common.gypi',
12:17:13 npm ERR! gyp info spawn args '-Dlibrary=shared_library',
12:17:13 npm ERR! gyp info spawn args '-Dvisibility=default',
12:17:13 npm ERR! gyp info spawn args '-Dnode_root_dir=/cache/node-gyp/14.17.5',
12:17:13 npm ERR! gyp info spawn args '-Dnode_gyp_dir=/srv/npm/node_modules/node-gyp',
12:17:13 npm ERR! gyp info spawn args '-Dnode_lib_file=/cache/node-gyp/14.17.5/<(target_arch)/node.lib',
12:17:13 npm ERR! gyp info spawn args '-Dmodule_root_dir=/workspace/src/extensions/MobileFrontend/node_modules/fibers',
12:17:13 npm ERR! gyp info spawn args '-Dnode_engine=v8',
12:17:13 npm ERR! gyp info spawn args '--depth=.',
12:17:13 npm ERR! gyp info spawn args '--no-parallel',
12:17:13 npm ERR! gyp info spawn args '--generator-output',
12:17:13 npm ERR! gyp info spawn args 'build',
12:17:13 npm ERR! gyp info spawn args '-Goutput_dir=.'
12:17:13 npm ERR! gyp info spawn args ]
12:17:13 npm ERR! gyp info spawn make
12:17:13 npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
12:17:13 npm ERR! ../src/fibers.cc:68:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<String> NewLatin1String(Isolate* isolate, const char* string) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:72:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<String> NewLatin1Symbol(Isolate* isolate, const char* string) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:94:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Object> NewInstance(Isolate* isolate, Local<Function> fn, int argc, Local<Value> argv[]) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:104:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Number> ToNumber(Local<Value> value) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:114:50: error: ‘Handle’ has not been declared
12:17:13 npm ERR! Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:114:56: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! Local<Value> GetStackTrace(TryCatch* try_catch, Handle<Context> context) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In function ‘v8::Local<v8::Value> uni::GetStackTrace(uni::TryCatch*, int)’:
12:17:13 npm ERR! ../src/fibers.cc:115:32: error: ‘context’ was not declared in this scope
12:17:13 npm ERR! return try_catch->StackTrace(context).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:115:32: note: suggested alternative: ‘setcontext’
12:17:13 npm ERR! return try_catch->StackTrace(context).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! setcontext
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:127:39: error: ‘Handle’ has not been declared
12:17:13 npm ERR! void fixStackLimit(Isolate* isolate, Handle<Context> context) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:127:45: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! void fixStackLimit(Isolate* isolate, Handle<Context> context) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In function ‘void uni::fixStackLimit(v8::Isolate*, int)’:
12:17:13 npm ERR! ../src/fibers.cc:128:19: error: ‘context’ was not declared in this scope
12:17:13 npm ERR! Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:128:19: note: suggested alternative: ‘setcontext’
12:17:13 npm ERR! Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! setcontext
12:17:13 npm ERR! ../src/fibers.cc:128:33: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! Script::Compile(context, uni::NewLatin1String(isolate, "void 0;")).ToLocalChecked();
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:149:58: error: ‘Handle’ has not been declared
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:64: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In function ‘void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’:
12:17:13 npm ERR! ../src/fibers.cc:150:29: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! persistent.Reset(isolate, handle);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:150:29: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! persistent.Reset(isolate, handle);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:162:26: error: variable or field ‘SetInternalPointer’ declared void
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:162:26: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:162:26: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:162:34: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:162:36: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:162:36: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:162:44: error: expected primary-expression before ‘int’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:162:55: error: expected primary-expression before ‘void’
12:17:13 npm ERR! void SetInternalPointer(Handle<T> handle, int index, void* val) {
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:166:27: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:166:27: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:166:35: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:166:37: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:166:37: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:166:45: error: expected primary-expression before ‘int’
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:166:54: error: expression list treated as compound expression in initializer [-fpermissive]
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:166:55: error: expected ‘;’ before ‘{’ token
12:17:13 npm ERR! void* GetInternalPointer(Handle<T> handle, int index) {
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ;
12:17:13 npm ERR! ../src/fibers.cc:171:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<T> Deref(Isolate* isolate, Persistent<T>& handle) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:176:14: error: variable or field ‘Return’ declared void
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:176:14: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:176:14: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:176:22: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:176:24: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:176:24: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:176:32: error: expected primary-expression before ‘const’
12:17:13 npm ERR! void Return(Handle<T> handle, const Arguments& args) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:180:14: error: variable or field ‘Return’ declared void
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:180:14: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:180:14: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:180:22: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:180:24: error: ‘handle’ was not declared in this scope
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:180:24: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:180:51: error: expected primary-expression before ‘info’
12:17:13 npm ERR! void Return(Handle<T> handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:188:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Value> ThrowException(Isolate* isolate, Handle<Value> exception) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:192:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Context> GetCurrentContext(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:196:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:200:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Boolean> NewBoolean(Isolate* isolate, bool value) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:204:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Number> NewNumber(Isolate* isolate, double value) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:208:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<FunctionTemplate> NewFunctionTemplate(
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:218:2: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Signature> NewSignature(
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc: In function ‘void uni::SetAccessor(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&))’:
12:17:13 npm ERR! ../src/fibers.cc:341:87: warning: cast between incompatible function types from ‘uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::AccessorNameGetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} [-Wcast-function-type]
12:17:13 npm ERR! object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:341:123: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} to ‘v8::AccessorNameSetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} [-Wcast-function-type]
12:17:13 npm ERR! object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:408:17: error: expected ‘;’ at end of member declaration
12:17:13 npm ERR! static Fiber& Unwrap(Handle<Object> handle) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ;
12:17:13 npm ERR! ../src/fibers.cc:408:30: error: expected ‘)’ before ‘<’ token
12:17:13 npm ERR! static Fiber& Unwrap(Handle<Object> handle) {
12:17:13 npm ERR! ~ ^
12:17:13 npm ERR! )
12:17:13 npm ERR! ../src/fibers.cc:414:15: error: expected ‘)’ before ‘<’ token
12:17:13 npm ERR! Fiber(Handle<Object> handle, Handle<Function> cb, Handle<Context> v8_context) :
12:17:13 npm ERR! ~ ^
12:17:13 npm ERR! )
12:17:13 npm ERR! ../src/fibers.cc:680:3: error: ‘Handle’ does not name a type; did you mean ‘rand_r’?
12:17:13 npm ERR! Handle<Value> ReturnYielded() {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:842:20: error: ‘Handle’ has not been declared
12:17:13 npm ERR! static void Init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:842:26: error: expected ‘,’ or ‘...’ before ‘<’ token
12:17:13 npm ERR! static void Init(Handle<Object> target) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! In file included from ../src/fibers.cc:3:
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::WeakCallback(void*)’:
12:17:13 npm ERR! ../src/fibers.cc:458:23: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
12:17:13 npm ERR! assert(that.handle.IsNearDeath());
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::DestroyOrphans()’:
12:17:13 npm ERR! ../src/fibers.cc:495:22: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! auto stack(uni::Deref(that.isolate, fatal_stack));
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::New(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects 1 argument");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects 1 argument");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:517:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects 1 argument");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects a function");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects a function");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:519:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "Fiber expects a function");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:521:5: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:521:5: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:521:17: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:521:19: error: ‘argv’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:521:19: note: suggested alternative: ‘args’
12:17:13 npm ERR! Handle<Value> argv[1] = { args[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! args
12:17:13 npm ERR! ../src/fibers.cc:522:29: error: ‘NewInstance’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:522:69: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:522:134: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewInstance(Isolate::GetCurrent(), uni::Deref(Isolate::GetCurrent(), tmpl)->GetFunction(), 1, argv), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:525:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:525:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:525:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:525:21: error: ‘fn’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:525:41: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:525:44: error: ‘::Cast’ has not been declared
12:17:13 npm ERR! Handle<Function> fn = Handle<Function>::Cast(args[0]);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:526:36: error: ‘GetCurrentContext’ is not a member of ‘uni’
12:17:13 npm ERR! new Fiber(args.This(), fn, uni::GetCurrentContext(Isolate::GetCurrent()));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:527:40: error: no matching function for call to ‘Return(v8::Local<v8::Object>, const Arguments&)’
12:17:13 npm ERR! return uni::Return(args.This(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:184:7: note: candidate: ‘template<class T> void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo)’
12:17:13 npm ERR! void Return(Persistent<T>& handle, GetterCallbackInfo info) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:184:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:527:40: note: ‘v8::Local<v8::Object>’ is not derived from ‘v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >’
12:17:13 npm ERR! return uni::Return(args.This(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:527:40: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Run(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:535:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(args.Holder());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is already running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is already running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:541:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is already running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "run() excepts 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "run() excepts 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:543:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "run() excepts 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::RangeError, "Out of memory");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::RangeError, "Out of memory");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:554:6: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::RangeError, "Out of memory");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:564:52: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:564:51: note: cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ~~~~~~^
12:17:13 npm ERR! ../src/fibers.cc:566:57: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:566:57: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:570:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:570:49: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::ThrowInto(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:577:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(args.Holder());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:580:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:582:56: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, uni::Undefined(that.isolate));
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:582:56: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:584:51: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:584:50: note: cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ~~~~~~^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:586:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "throwInto() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:590:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:590:49: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Reset(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:598:38: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(args.Holder());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:601:29: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::Undefined(that.isolate), args);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:601:29: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:601:58: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::Undefined(that.isolate), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:603:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "This Fiber is not yielding");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "reset() expects no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "reset() expects no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:605:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "reset() expects no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:613:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:613:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:613:16: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:613:18: error: ‘val’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:613:29: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Value> val = uni::Deref(that.isolate, that.yielded);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:616:29: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, val), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:616:68: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, val), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:618:33: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(val, args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In member function ‘void Fiber::UnwindStack()’:
12:17:13 npm ERR! ../src/fibers.cc:635:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:635:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:635:16: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:635:59: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Value> zombie_exception = Exception::Error(uni::NewLatin1String(isolate, "This Fiber is a zombie"));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:636:64: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)’
12:17:13 npm ERR! uni::Reset(isolate, this->zombie_exception, zombie_exception);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:636:48: note: cannot convert ‘((Fiber*)this)->Fiber::zombie_exception’ (type ‘v8::Persistent<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(isolate, this->zombie_exception, zombie_exception);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:637:49: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Persistent<v8::Value>&)’
12:17:13 npm ERR! uni::Reset(isolate, yielded, zombie_exception);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:637:33: note: cannot convert ‘((Fiber*)this)->Fiber::zombie_exception’ (type ‘v8::Persistent<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(isolate, yielded, zombie_exception);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:650:46: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! uni::Reset<Value>(isolate, yielded, uni::Undefined(isolate));
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:650:46: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11940:18: note: ‘v8::Undefined’
12:17:13 npm ERR! Local<Primitive> Undefined(Isolate* isolate) {
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::RunFiber(void**)’:
12:17:13 npm ERR! ../src/fibers.cc:712:5: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:712:5: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:712:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:712:21: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:712:39: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Context> v8_context = uni::Deref(that.isolate, that.v8_context);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:713:5: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! v8_context->Enter();
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:715:38: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! uni::fixStackLimit(that.isolate, v8_context);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:717:17: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> yielded;
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:717:19: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! Handle<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:719:18: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Value> argv[1] = { (*args)[0] };
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:719:20: error: ‘argv’ was not declared in this scope
12:17:13 npm ERR! Handle<Value> argv[1] = { (*args)[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:719:20: note: suggested alternative: ‘args’
12:17:13 npm ERR! Handle<Value> argv[1] = { (*args)[0] };
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! args
12:17:13 npm ERR! ../src/fibers.cc:720:6: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:720:21: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:720:56: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 1, argv);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:722:6: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:722:21: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:722:56: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! yielded = uni::Deref(that.isolate, that.cb)->Call(v8_context->Global(), 0, NULL);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:726:66: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, try_catch.Exception());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:726:64: note: cannot convert ‘try_catch.uni::TryCatch::<anonymous>.v8::TryCatch::Exception()’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, try_catch.Exception());
12:17:13 npm ERR! ~~~~~~~~~~~~~~~~~~~^~
12:17:13 npm ERR! ../src/fibers.cc:728:50: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:728:103: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! if (that.zombie && !that.resetting && !uni::Deref(that.isolate, that.yielded)->StrictEquals(uni::Deref(that.isolate, that.zombie_exception))) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:730:76: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! uni::Reset(that.isolate, fatal_stack, uni::GetStackTrace(&try_catch, v8_context));
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:733:45: error: invalid use of member ‘Fiber::yielded’ in static member function
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, yielded);
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:399:21: note: declared here
12:17:13 npm ERR! Persistent<Value> yielded;
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:748:5: error: invalid use of member ‘Fiber::v8_context’ in static member function
12:17:13 npm ERR! v8_context->Exit();
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:397:23: note: declared here
12:17:13 npm ERR! Persistent<Context> v8_context;
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::Yield_(const Arguments&)’:
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "yield() called with no fiber running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "yield() called with no fiber running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:763:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::Error, "yield() called with no fiber running");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:769:29: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:769:63: error: ‘Deref’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:769:112: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::ThrowException(that.isolate, uni::Deref(that.isolate, that.zombie_exception)), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:771:74: error: no matching function for call to ‘Reset<v8::Value>(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Primitive>)’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:771:60: note: cannot convert ‘v8::Undefined(that.Fiber::isolate)’ (type ‘v8::Local<v8::Primitive>’) to type ‘int’
12:17:13 npm ERR! uni::Reset<Value>(that.isolate, that.yielded, Undefined(that.isolate));
12:17:13 npm ERR! ~~~~~~~~~^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:773:51: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::Value>&, v8::Local<v8::Value>)’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:773:50: note: cannot convert ‘(& args)->v8::FunctionCallbackInfo<v8::Value>::operator[](0)’ (type ‘v8::Local<v8::Value>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(that.isolate, that.yielded, args[0]);
12:17:13 npm ERR! ~~~~~~^
12:17:13 npm ERR! ../src/fibers.cc:10:45: error: ‘ThrowException’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "yield() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:90: error: ‘NewLatin1String’ is not a member of ‘uni’
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "yield() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:10:139: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! #define THROW(x, m) return uni::Return(uni::ThrowException(Isolate::GetCurrent(), x(uni::NewLatin1String(Isolate::GetCurrent(), m))), args)
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:775:5: note: in expansion of macro ‘THROW’
12:17:13 npm ERR! THROW(Exception::TypeError, "yield() expects 1 or no arguments");
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:798:28: error: ‘class Fiber’ has no member named ‘ReturnYielded’
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:798:49: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(that.ReturnYielded(), args);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetStarted(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:806:29: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:806:29: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:317:27: note: ‘v8::Undefined’
12:17:13 npm ERR! friend Local<Primitive> Undefined(Isolate* isolate);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:806:67: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:808:36: error: no match for call to ‘(Fiber) (v8::Local<v8::Object>)’
12:17:13 npm ERR! Fiber& that = Unwrap(info.This());
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:809:28: error: ‘NewBoolean’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
12:17:13 npm ERR! ^~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:809:72: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewBoolean(that.isolate, that.started), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetCurrent(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:816:29: error: ‘Undefined’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:816:29: note: suggested alternative:
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:317:27: note: ‘v8::Undefined’
12:17:13 npm ERR! friend Local<Primitive> Undefined(Isolate* isolate);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:816:67: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::Undefined(Isolate::GetCurrent()), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetPoolSize(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:824:28: error: ‘NewNumber’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:824:88: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::pool_size), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::SetPoolSize(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:828:32: error: ‘ToNumber’ is not a member of ‘uni’
12:17:13 npm ERR! Coroutine::pool_size = uni::ToNumber(value)->Value();
12:17:13 npm ERR! ^~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static uni::FunctionType Fiber::GetFibersCreated(v8::Local<v8::String>, const GetterCallbackInfo&)’:
12:17:13 npm ERR! ../src/fibers.cc:835:28: error: ‘NewNumber’ is not a member of ‘uni’
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:835:99: error: return-statement with a value, in function returning ‘uni::FunctionType’ {aka ‘void’} [-fpermissive]
12:17:13 npm ERR! return uni::Return(uni::NewNumber(Isolate::GetCurrent(), Coroutine::coroutines_created()), info);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc: In static member function ‘static void Fiber::Init(int)’:
12:17:13 npm ERR! ../src/fibers.cc:853:4: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:853:4: note: suggested alternative: ‘handle’
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! handle
12:17:13 npm ERR! ../src/fibers.cc:853:27: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:853:41: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:853:41: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! Handle<FunctionTemplate> tmpl = uni::NewFunctionTemplate(isolate, New);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:854:41: error: no matching function for call to ‘Reset(v8::Isolate*&, v8::Persistent<v8::FunctionTemplate>&, v8::Persistent<v8::FunctionTemplate>&)’
12:17:13 npm ERR! uni::Reset(isolate, Fiber::tmpl, tmpl);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: candidate: ‘template<class T> void uni::Reset(v8::Isolate*, v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, int)’
12:17:13 npm ERR! void Reset(Isolate* isolate, Persistent<T>& persistent, Handle<T> handle) {
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:149:7: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:854:37: note: cannot convert ‘Fiber::tmpl’ (type ‘v8::Persistent<v8::FunctionTemplate>’) to type ‘int’
12:17:13 npm ERR! uni::Reset(isolate, Fiber::tmpl, tmpl);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! ../src/fibers.cc:855:8: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:855:28: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! tmpl->SetClassName(uni::NewLatin1Symbol(isolate, "Fiber"));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:859:20: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:859:22: error: ‘sig’ was not declared in this scope
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! ../src/fibers.cc:859:22: note: suggested alternative: ‘sig_t’
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! sig_t
12:17:13 npm ERR! ../src/fibers.cc:859:33: error: ‘NewSignature’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Signature> sig = uni::NewSignature(isolate, tmpl);
12:17:13 npm ERR! ^~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:860:8: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! tmpl->InstanceTemplate()->SetInternalFieldCount(1);
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:863:25: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:863:27: error: ‘proto’ was not declared in this scope
12:17:13 npm ERR! Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:863:39: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! Handle<ObjectTemplate> proto = tmpl->PrototypeTemplate();
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:864:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->Set(uni::NewLatin1Symbol(isolate, "reset"),
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:865:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:865:10: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:865:58: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:865:60: error: expected primary-expression before ‘)’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Reset, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:866:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->Set(uni::NewLatin1Symbol(isolate, "run"),
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:867:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:867:10: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:867:56: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:867:58: error: expected primary-expression before ‘)’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, Run, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:868:20: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->Set(uni::NewLatin1Symbol(isolate, "throwInto"),
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:869:10: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:869:10: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:869:62: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:869:64: error: expected primary-expression before ‘)’ token
12:17:13 npm ERR! uni::NewFunctionTemplate(isolate, ThrowInto, Handle<Value>(), sig));
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:870:28: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! proto->SetAccessor(uni::NewLatin1Symbol(isolate, "started"), GetStarted);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:873:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:873:21: error: ‘yield’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! ../src/fibers.cc:873:21: note: suggested alternative: ‘yielded’
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~
12:17:13 npm ERR! yielded
12:17:13 npm ERR! ../src/fibers.cc:873:34: error: ‘NewFunctionTemplate’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:873:34: note: suggested alternative: ‘FunctionType’
12:17:13 npm ERR! Handle<Function> yield = uni::NewFunctionTemplate(isolate, Yield_)->GetFunction();
12:17:13 npm ERR! ^~~~~~~~~~~~~~~~~~~
12:17:13 npm ERR! FunctionType
12:17:13 npm ERR! ../src/fibers.cc:874:17: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:874:19: error: ‘sym_yield’ was not declared in this scope
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:874:19: note: suggested alternative: ‘sched_yield’
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^~~~~~~~~
12:17:13 npm ERR! sched_yield
12:17:13 npm ERR! ../src/fibers.cc:874:36: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! Handle<String> sym_yield = uni::NewLatin1Symbol(isolate, "yield");
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:875:4: error: ‘target’ was not declared in this scope
12:17:13 npm ERR! target->Set(sym_yield, yield);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:875:4: note: suggested alternative: ‘started’
12:17:13 npm ERR! target->Set(sym_yield, yield);
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! started
12:17:13 npm ERR! ../src/fibers.cc:878:19: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! Handle<Function> fn = tmpl->GetFunction();
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:878:21: error: ‘fn’ was not declared in this scope
12:17:13 npm ERR! Handle<Function> fn = tmpl->GetFunction();
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:878:30: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::FunctionTemplate>’
12:17:13 npm ERR! Handle<Function> fn = tmpl->GetFunction();
12:17:13 npm ERR! ^~
12:17:13 npm ERR! ../src/fibers.cc:880:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "current"), GetCurrent);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:881:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "poolSize"), GetPoolSize, SetPoolSize);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:882:39: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! uni::SetAccessor(isolate, fn, uni::NewLatin1Symbol(isolate, "fibersCreated"), GetFibersCreated);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:885:21: error: ‘NewLatin1Symbol’ is not a member of ‘uni’
12:17:13 npm ERR! target->Set(uni::NewLatin1Symbol(isolate, "Fiber"), fn);
12:17:13 npm ERR! ^~~~~~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: At global scope:
12:17:13 npm ERR! ../src/fibers.cc:901:11: error: variable or field ‘init’ declared void
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:901:11: error: ‘Handle’ was not declared in this scope
12:17:13 npm ERR! ../src/fibers.cc:901:11: note: suggested alternative: ‘rand_r’
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! rand_r
12:17:13 npm ERR! ../src/fibers.cc:901:24: error: expected primary-expression before ‘>’ token
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^
12:17:13 npm ERR! ../src/fibers.cc:901:26: error: ‘target’ was not declared in this scope
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! ../src/fibers.cc:901:26: note: suggested alternative: ‘tzset’
12:17:13 npm ERR! void init(Handle<Object> target) {
12:17:13 npm ERR! ^~~~~~
12:17:13 npm ERR! tzset
12:17:13 npm ERR! In file included from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! ../src/fibers.cc:916:21: error: ‘init’ was not declared in this scope
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’
12:17:13 npm ERR! (node::addon_register_func) (regfunc), \
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:916:1: note: in expansion of macro ‘NODE_MODULE’
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:916:21: note: suggested alternative: ‘int’
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/node.h:758:36: note: in definition of macro ‘NODE_MODULE_X’
12:17:13 npm ERR! (node::addon_register_func) (regfunc), \
12:17:13 npm ERR! ^~~~~~~
12:17:13 npm ERR! ../src/fibers.cc:916:1: note: in expansion of macro ‘NODE_MODULE’
12:17:13 npm ERR! NODE_MODULE(fibers, init)
12:17:13 npm ERR! ^~~~~~~~~~~
12:17:13 npm ERR! ../src/fibers.cc: In instantiation of ‘void uni::Return(v8::Persistent<T, v8::NonCopyablePersistentTraits<T> >&, uni::GetterCallbackInfo) [with T = v8::Object; uni::GetterCallbackInfo = v8::PropertyCallbackInfo<v8::Value>]’:
12:17:13 npm ERR! ../src/fibers.cc:814:45: required from here
12:17:13 npm ERR! ../src/fibers.cc:185:3: error: no matching function for call to ‘v8::ReturnValue<v8::Value>::Set(v8::Persistent<v8::Object>&)’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4220:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(const v8::Global<S>&) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(const Global<S>& handle);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4220:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: ‘v8::Persistent<v8::Object>’ is not derived from ‘const v8::Global<T>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4222:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(const v8::TracedReferenceBase<S>&) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(const TracedReferenceBase<S>& handle);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4222:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: ‘v8::Persistent<v8::Object>’ is not derived from ‘const v8::TracedReferenceBase<T>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4224:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(v8::Local<S>) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(const Local<S> handle);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4224:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: ‘v8::Persistent<v8::Object>’ is not derived from ‘v8::Local<T>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! In file included from /cache/node-gyp/14.17.5/include/node/node.h:67,
12:17:13 npm ERR! from ../src/coroutine.h:1,
12:17:13 npm ERR! from ../src/fibers.cc:1:
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11149:6: note: candidate: ‘void v8::ReturnValue<T>::Set(bool) [with T = v8::Value]’
12:17:13 npm ERR! void ReturnValue<T>::Set(bool value) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11149:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘bool’
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11120:6: note: candidate: ‘void v8::ReturnValue<T>::Set(double) [with T = v8::Value]’
12:17:13 npm ERR! void ReturnValue<T>::Set(double i) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11120:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘double’
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11126:6: note: candidate: ‘void v8::ReturnValue<T>::Set(int32_t) [with T = v8::Value; int32_t = int]’
12:17:13 npm ERR! void ReturnValue<T>::Set(int32_t i) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11126:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘int32_t’ {aka ‘int’}
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11137:6: note: candidate: ‘void v8::ReturnValue<T>::Set(uint32_t) [with T = v8::Value; uint32_t = unsigned int]’
12:17:13 npm ERR! void ReturnValue<T>::Set(uint32_t i) {
12:17:13 npm ERR! ^~~~~~~~~~~~~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:11137:6: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘uint32_t’ {aka ‘unsigned int’}
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4239:18: note: candidate: ‘template<class S> void v8::ReturnValue<T>::Set(S*) [with S = S; T = v8::Value]’
12:17:13 npm ERR! V8_INLINE void Set(S* whatever);
12:17:13 npm ERR! ^~~
12:17:13 npm ERR! /cache/node-gyp/14.17.5/include/node/v8.h:4239:18: note: template argument deduction/substitution failed:
12:17:13 npm ERR! ../src/fibers.cc:185:3: note: mismatched types ‘S*’ and ‘v8::Persistent<v8::Object>’
12:17:13 npm ERR! info.GetReturnValue().Set(handle);
12:17:13 npm ERR! ^~~~
12:17:13 npm ERR! make: *** [fibers.target.mk:123: Release/obj.target/fibers/src/fibers.o] Error 1
12:17:13 npm ERR! gyp ERR! build error
12:17:13 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
12:17:13 npm ERR! gyp ERR! stack at ChildProcess.onExit (/srv/npm/node_modules/node-gyp/lib/build.js:194:23)
12:17:13 npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28)
12:17:13 npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
12:17:13 npm ERR! gyp ERR! System Linux 4.19.0-0.bpo.14-amd64
12:17:13 npm ERR! gyp ERR! command "/usr/bin/node" "/srv/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
12:17:13 npm ERR! gyp ERR! cwd /workspace/src/extensions/MobileFrontend/node_modules/fibers
12:17:13 npm ERR! gyp ERR! node -v v14.17.5
12:17:13 npm ERR! gyp ERR! node-gyp -v v7.1.2
12:17:13 npm ERR! gyp ERR! not ok
12:17:13 npm ERR! node-gyp exited with code: 1
12:17:13 npm ERR! Please make sure you are using a supported platform and node version. If you
12:17:13 npm ERR! would like to compile fibers on this machine please make sure you have setup your
12:17:13 npm ERR! build environment--
12:17:13 npm ERR! Windows + OS X instructions here: https://github.com/nodejs/node-gyp
12:17:13 npm ERR! Ubuntu users please run: `sudo apt-get install g++ build-essential`
12:17:13 npm ERR! RHEL users please run: `yum install gcc-c++` and `yum groupinstall 'Development Tools'`
12:17:13 npm ERR! Alpine users please run: `sudo apk add python make g++`
12:17:14
12:17:14 npm ERR! A complete log of this run can be found in:
12:17:14 npm ERR! /cache/npm/_logs/2021-11-19T11_17_13_649Z-debug.log
12:17:14 INFO:quibble.commands:<<< Finish: Browser tests for projects mediawiki/extensions/Wikibase, mediawiki/core, mediawiki/extensions/AbuseFilter, mediawiki/extensions/AntiSpoof, mediawiki/extensions/ArticlePlaceholder, mediawiki/extensions/BetaFeatures, mediawiki/extensions/CentralAuth, mediawiki/extensions/CheckUser, mediawiki/extensions/CirrusSearch, mediawiki/extensions/Cite, mediawiki/extensions/CodeEditor, mediawiki/extensions/ConfirmEdit, mediawiki/extensions/Echo, mediawiki/extensions/Elastica, mediawiki/extensions/EventBus, mediawiki/extensions/EventLogging, mediawiki/extensions/EventStreamConfig, mediawiki/extensions/FlaggedRevs, mediawiki/extensions/GeoData, mediawiki/extensions/GuidedTour, mediawiki/extensions/MobileApp, mediawiki/extensions/MobileFrontend, mediawiki/extensions/ParserFunctions, mediawiki/extensions/PdfHandler, mediawiki/extensions/PropertySuggester, mediawiki/extensions/Renameuser, mediawiki/extensions/Scribunto, mediawiki/extensions/SiteMatrix, mediawiki/extensions/SyntaxHighlight_GeSHi, mediawiki/extensions/TemplateData, mediawiki/extensions/TimedMediaHandler, mediawiki/extensions/UniversalLanguageSelector, mediawiki/extensions/VisualEditor, mediawiki/extensions/WikiEditor, mediawiki/extensions/WikibaseCirrusSearch, mediawiki/extensions/WikibaseLexeme, mediawiki/extensions/WikibaseMediaInfo, mediawiki/extensions/WikibaseQualityConstraints, mediawiki/extensions/WikimediaBadges, mediawiki/extensions/WikimediaEvents, mediawiki/extensions/cldr, mediawiki/skins/MinervaNeue, mediawiki/skins/Vector, in 879.910 s
12:17:14 INFO:backend.ChromeWebDriver:Terminating ChromeWebDriver
12:17:14 INFO:backend.Xvfb:Terminating Xvfb
12:17:14 INFO:backend.PhpWebserver:Terminating PhpWebserver
12:17:14 INFO:backend.MySQL:Terminating MySQL
12:17:16 Traceback (most recent call last):
12:17:16 File "/usr/local/bin/quibble", line 10, in <module>
12:17:16 sys.exit(main())
12:17:16 File "/usr/local/lib/python3.7/dist-packages/quibble/cmd.py", line 698, in main
12:17:16 cmd.execute(plan, dry_run=args.dry_run)
12:17:16 File "/usr/local/lib/python3.7/dist-packages/quibble/cmd.py", line 442, in execute
12:17:16 quibble.commands.execute_command(command)
12:17:16 File "/usr/local/lib/python3.7/dist-packages/quibble/commands.py", line 22, in execute_command
12:17:16 command.execute()
12:17:16 File "/usr/local/lib/python3.7/dist-packages/quibble/commands.py", line 868, in execute
12:17:16 self._run_webdriver(project_dir)
12:17:16 File "/usr/local/lib/python3.7/dist-packages/quibble/commands.py", line 885, in _run_webdriver
12:17:16 _npm_install(project_dir)
12:17:16 File "/usr/local/lib/python3.7/dist-packages/quibble/commands.py", line 27, in _npm_install
12:17:16 subprocess.check_call(['npm', 'ci'], cwd=project_dir)
12:17:16 File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
12:17:16 raise CalledProcessError(retcode, cmd)
12:17:16 subprocess.CalledProcessError: Command '['npm', 'ci']' returned non-zero exit status 1.
12:18:09 Build step 'Execute shell' marked build as failure
```