../src/weakref.cc: In function 'v8::Handle {anonymous}::Unwrap(v8::Handle)': ../src/weakref.cc:58:16: error: could not convert 'cont->{anonymous}::proxy_container::target' from 'v8::Persistent' to 'v8::Handle {aka v8::Local}' return cont->target; ^ ../src/weakref.cc: In function 'v8::Handle {anonymous}::GetCallbacks(v8::Handle)': ../src/weakref.cc:69:16: error: could not convert 'cont->{anonymous}::proxy_container::callbacks' from 'v8::Persistent' to 'v8::Handle {aka v8::Local}' return cont->callbacks; ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:81:45: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakNamedPropertyGetter(v8::Local, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:82:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:82:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:82:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:82:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:89:45: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakNamedPropertySetter(v8::Local, v8::Local, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:90:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:90:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:90:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:90:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:91:8: error: in argument to unary ! if (!dead) obj->Set(property, value); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:97:46: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakNamedPropertyQuery(v8::Local, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:98:22: error: within this context return HandleScope().Close(Integer::New(None)); ^ ../src/weakref.cc:98:24: error: 'class v8::HandleScope' has no member named 'Close' return HandleScope().Close(Integer::New(None)); ^ ../src/weakref.cc:98:47: error: no matching function for call to 'v8::Integer::New(v8::PropertyAttribute)' return HandleScope().Close(Integer::New(None)); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided ../src/weakref.cc: At global scope: ../src/weakref.cc:103:48: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakNamedPropertyDeleter(v8::Local, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:104:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:104:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:104:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:104:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:105:24: error: in argument to unary ! return Boolean::New(!dead && obj->Delete(property)); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:110:47: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakIndexedPropertyGetter(uint32_t, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:111:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:111:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:111:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:111:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:118:47: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakIndexedPropertySetter(uint32_t, v8::Local, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:119:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:119:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:119:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:119:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:120:8: error: in argument to unary ! if (!dead) obj->Set(index, value); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:126:48: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakIndexedPropertyQuery(uint32_t, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:127:22: error: within this context return HandleScope().Close(Integer::New(None)); ^ ../src/weakref.cc:127:24: error: 'class v8::HandleScope' has no member named 'Close' return HandleScope().Close(Integer::New(None)); ^ ../src/weakref.cc:127:47: error: no matching function for call to 'v8::Integer::New(v8::PropertyAttribute)' return HandleScope().Close(Integer::New(None)); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided ../src/weakref.cc: At global scope: ../src/weakref.cc:132:50: error: 'AccessorInfo' does not name a type const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakIndexedPropertyDeleter(uint32_t, const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:133:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:133:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:133:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:133:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:134:24: error: in argument to unary ! return Boolean::New(!dead && obj->Delete(index)); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:138:44: error: 'AccessorInfo' does not name a type Handle WeakPropertyEnumerator(const AccessorInfo& info) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::WeakPropertyEnumerator(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:74:15: error: within this context HandleScope scope; \ ^ ../src/weakref.cc:139:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:76:33: error: request for member 'This' in 'info', which is of non-class type 'const int' const bool dead = IsDead(info.This()); \ ^ ../src/weakref.cc:139:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:8: error: in argument to unary ! if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:139:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ ../src/weakref.cc:77:32: error: request for member 'This' in 'info', which is of non-class type 'const int' if (!dead) obj = Unwrap(info.This()); \ ^ ../src/weakref.cc:139:3: note: in expansion of macro 'UNWRAP' UNWRAP ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:140:22: error: within this context return HandleScope().Close(dead ? Array::New(0) : obj->GetPropertyNames()); ^ ../src/weakref.cc:140:24: error: 'class v8::HandleScope' has no member named 'Close' return HandleScope().Close(dead ? Array::New(0) : obj->GetPropertyNames()); ^ ../src/weakref.cc: In function 'void {anonymous}::AddCallback(v8::Handle, v8::Handle)': ../src/weakref.cc:146:50: error: no matching function for call to 'v8::Integer::New(uint32_t)' callbacks->Set(Integer::New(callbacks->Length()), callback); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided /usr/include/nodejs/deps/v8/include/v8.h: In function 'void {anonymous}::TargetCallback(v8::Persistent, void*)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:151:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:158:33: error: base operand of '->' has non-pointer type 'v8::Persistent' uint32_t len = cont->callbacks->Length(); ^ ../src/weakref.cc:160:11: error: no match for 'operator=' (operand types are 'v8::Handle {aka v8::Local}' and 'v8::Persistent') argv[0] = target; ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:210:7: note: candidate: v8::Local& v8::Local::operator=(const v8::Local&) class Local { ^ /usr/include/nodejs/deps/v8/include/v8.h:210:7: note: no known conversion for argument 1 from 'v8::Persistent' to 'const v8::Local&' /usr/include/nodejs/deps/v8/include/v8.h:210:7: note: candidate: v8::Local& v8::Local::operator=(v8::Local&&) /usr/include/nodejs/deps/v8/include/v8.h:210:7: note: no known conversion for argument 1 from 'v8::Persistent' to 'v8::Local&&' ../src/weakref.cc:164:24: error: base operand of '->' has non-pointer type 'v8::Persistent' cont->callbacks->Get(Integer::New(i))); ^ ../src/weakref.cc:164:44: error: no matching function for call to 'v8::Integer::New(uint32_t&)' cont->callbacks->Get(Integer::New(i))); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate: static v8::Local v8::Integer::New(v8::Isolate*, int32_t) static Local New(Isolate* isolate, int32_t value); ^ /usr/include/nodejs/deps/v8/include/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided ../src/weakref.cc:168:20: error: base operand of '->' has non-pointer type 'v8::Persistent' cb->Call(target->ToObject(), 1, argv); ^ ../src/weakref.cc:171:31: warning: 'void node::FatalException(const v8::TryCatch&)' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations] FatalException(try_catch); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:283:29: note: declared here inline void FatalException(const v8::TryCatch& try_catch) { ^ /usr/include/nodejs/src/node.h:66:42: note: in definition of macro 'NODE_DEPRECATED' __attribute__((deprecated(message))) declarator ^ ../src/weakref.cc:176:14: error: base operand of '->' has non-pointer type 'v8::Persistent' cont->proxy->SetAlignedPointerInInternalField(0, NULL); ^ ../src/weakref.cc:180:15: error: 'class v8::Persistent' has no member named 'Dispose' cont->proxy.Dispose(); ^ ../src/weakref.cc:181:15: error: 'class v8::Persistent' has no member named 'Clear' cont->proxy.Clear(); ^ ../src/weakref.cc:182:16: error: 'class v8::Persistent' has no member named 'Dispose' cont->target.Dispose(); ^ ../src/weakref.cc:183:16: error: 'class v8::Persistent' has no member named 'Clear' cont->target.Clear(); ^ ../src/weakref.cc:184:19: error: 'class v8::Persistent' has no member named 'Dispose' cont->callbacks.Dispose(); ^ ../src/weakref.cc:185:19: error: 'class v8::Persistent' has no member named 'Clear' cont->callbacks.Clear(); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:190:28: error: 'Arguments' does not name a type Handle Create(const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::Create(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:191:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:193:14: error: invalid types 'const int[int]' for array subscript if (!args[0]->IsObject()) { ^ ../src/weakref.cc:194:29: error: 'New' is not a member of 'v8::String' Local message = String::New("Object expected"); ^ ../src/weakref.cc:195:56: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::TypeError(message)); ^ ../src/weakref.cc:201:48: error: invalid types 'const int[int]' for array subscript cont->target = Persistent::New(args[0]->ToObject()); ^ ../src/weakref.cc:202:55: error: no matching function for call to 'v8::Array::New()' cont->callbacks = Persistent::New(Array::New()); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:2965:23: note: candidate: static v8::Local v8::Array::New(v8::Isolate*, int) static Local New(Isolate* isolate, int length = 0); ^ /usr/include/nodejs/deps/v8/include/v8.h:2965:23: note: candidate expects 2 arguments, 0 provided ../src/weakref.cc:204:51: error: base operand of '->' has non-pointer type 'v8::Persistent' cont->proxy = Persistent::New(proxyClass->NewInstance()); ^ ../src/weakref.cc:206:14: error: base operand of '->' has non-pointer type 'v8::Persistent' cont->proxy->SetAlignedPointerInInternalField(0, cont); ^ ../src/weakref.cc:211:16: error: 'class v8::Persistent' has no member named 'MakeWeak' cont->target.MakeWeak(cont, TargetCallback); ^ ../src/weakref.cc:213:12: error: request for member 'Length' in 'args', which is of non-class type 'const int' if (args.Length() >= 2) { ^ ../src/weakref.cc:214:59: error: invalid types 'const int[int]' for array subscript AddCallback(cont->proxy, Handle::Cast(args[1])); ^ ../src/weakref.cc:217:16: error: could not convert 'cont->{anonymous}::proxy_container::proxy' from 'v8::Persistent' to 'v8::Handle {aka v8::Local}' return cont->proxy; ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:228:32: error: 'Arguments' does not name a type Handle IsWeakRef (const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::IsWeakRef(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:229:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:230:39: error: invalid types 'const int[int]' for array subscript return Boolean::New(isWeakRef(args[0])); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:233:25: error: 'Arguments' does not name a type Handle Get(const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::Get(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:234:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:236:24: error: invalid types 'const int[int]' for array subscript if (!isWeakRef(args[0])) { ^ ../src/weakref.cc:237:29: error: 'New' is not a member of 'v8::String' Local message = String::New("Weakref instance expected"); ^ ../src/weakref.cc:238:56: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::TypeError(message)); ^ ../src/weakref.cc:240:31: error: invalid types 'const int[int]' for array subscript Local proxy = args[0]->ToObject(); ^ ../src/weakref.cc:243:30: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' if (dead) return Undefined(); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/weakref.cc:246:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(obj); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:249:33: error: 'Arguments' does not name a type Handle IsNearDeath(const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::IsNearDeath(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:250:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:252:24: error: invalid types 'const int[int]' for array subscript if (!isWeakRef(args[0])) { ^ ../src/weakref.cc:253:29: error: 'New' is not a member of 'v8::String' Local message = String::New("Weakref instance expected"); ^ ../src/weakref.cc:254:56: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::TypeError(message)); ^ ../src/weakref.cc:256:31: error: invalid types 'const int[int]' for array subscript Local proxy = args[0]->ToObject(); ^ ../src/weakref.cc:266:64: error: no matching function for call to 'v8::Boolean::New(bool)' Handle rtn = Boolean::New(cont->target.IsNearDeath()); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:7603:16: note: candidate: static v8::Local v8::Boolean::New(v8::Isolate*, bool) Local Boolean::New(Isolate* isolate, bool value) { ^ /usr/include/nodejs/deps/v8/include/v8.h:7603:16: note: candidate expects 2 arguments, 1 provided ../src/weakref.cc:268:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(rtn); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:271:28: error: 'Arguments' does not name a type Handle IsDead(const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::IsDead(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:272:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:274:24: error: invalid types 'const int[int]' for array subscript if (!isWeakRef(args[0])) { ^ ../src/weakref.cc:275:29: error: 'New' is not a member of 'v8::String' Local message = String::New("Weakref instance expected"); ^ ../src/weakref.cc:276:56: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::TypeError(message)); ^ ../src/weakref.cc:278:31: error: invalid types 'const int[int]' for array subscript Local proxy = args[0]->ToObject(); ^ ../src/weakref.cc:281:27: error: no matching function for call to 'v8::Boolean::New(const bool&)' return Boolean::New(dead); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:7603:16: note: candidate: static v8::Local v8::Boolean::New(v8::Isolate*, bool) Local Boolean::New(Isolate* isolate, bool value) { ^ /usr/include/nodejs/deps/v8/include/v8.h:7603:16: note: candidate expects 2 arguments, 1 provided ../src/weakref.cc: At global scope: ../src/weakref.cc:285:33: error: 'Arguments' does not name a type Handle AddCallback(const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::AddCallback(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:286:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:288:24: error: invalid types 'const int[int]' for array subscript if (!isWeakRef(args[0])) { ^ ../src/weakref.cc:289:29: error: 'New' is not a member of 'v8::String' Local message = String::New("Weakref instance expected"); ^ ../src/weakref.cc:290:56: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::TypeError(message)); ^ ../src/weakref.cc:292:31: error: invalid types 'const int[int]' for array subscript Local proxy = args[0]->ToObject(); ^ ../src/weakref.cc:294:51: error: invalid types 'const int[int]' for array subscript AddCallback(proxy, Handle::Cast(args[1])); ^ ../src/weakref.cc:296:20: error: too few arguments to function 'v8::Local v8::Undefined(v8::Isolate*)' return Undefined(); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:315:27: note: declared here friend Local Undefined(Isolate* isolate); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:299:31: error: 'Arguments' does not name a type Handle Callbacks(const Arguments& args) { ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'v8::Handle {anonymous}::Callbacks(const int&)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:300:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:302:24: error: invalid types 'const int[int]' for array subscript if (!isWeakRef(args[0])) { ^ ../src/weakref.cc:303:29: error: 'New' is not a member of 'v8::String' Local message = String::New("Weakref instance expected"); ^ ../src/weakref.cc:304:56: error: 'ThrowException' was not declared in this scope return ThrowException(Exception::TypeError(message)); ^ ../src/weakref.cc:306:31: error: invalid types 'const int[int]' for array subscript Local proxy = args[0]->ToObject(); ^ ../src/weakref.cc:308:16: error: 'class v8::HandleScope' has no member named 'Close' return scope.Close(GetCallbacks(proxy)); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h: In function 'void {anonymous}::Initialize(v8::Handle)': /usr/include/nodejs/deps/v8/include/v8.h:885:13: error: 'v8::HandleScope::HandleScope()' is protected V8_INLINE HandleScope() {} ^ ../src/weakref.cc:313:15: error: within this context HandleScope scope; ^ ../src/weakref.cc:315:69: error: no matching function for call to 'v8::Persistent::New(v8::Local)' proxyClass = Persistent::New(ObjectTemplate::New()); ^ In file included from ../src/weakref.cc:18:0: /usr/include/nodejs/deps/v8/include/v8.h:7181:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate] T* PersistentBase::New(Isolate* isolate, T* that) { ^ /usr/include/nodejs/deps/v8/include/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided ../src/weakref.cc:316:13: error: base operand of '->' has non-pointer type 'v8::Persistent' proxyClass->SetNamedPropertyHandler(WeakNamedPropertyGetter, ^ ../src/weakref.cc:321:13: error: base operand of '->' has non-pointer type 'v8::Persistent' proxyClass->SetIndexedPropertyHandler(WeakIndexedPropertyGetter, ^ ../src/weakref.cc:326:13: error: base operand of '->' has non-pointer type 'v8::Persistent' proxyClass->SetInternalFieldCount(1); ^ ../src/weakref.cc:328:37: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [4], v8::Handle (&)(const int&))' NODE_SET_METHOD(target, "get", Get); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:328:37: note: cannot convert '{anonymous}::Get' (type 'v8::Handle(const int&) {aka v8::Local(const int&)}') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "get", Get); ^ ../src/weakref.cc:329:43: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [7], v8::Handle (&)(const int&))' NODE_SET_METHOD(target, "create", Create); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:329:43: note: cannot convert '{anonymous}::Create' (type 'v8::Handle(const int&) {aka v8::Local(const int&)}') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "create", Create); ^ ../src/weakref.cc:330:49: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [10], v8::Handle (&)(const int&))' NODE_SET_METHOD(target, "isWeakRef", IsWeakRef); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:330:49: note: cannot convert '{anonymous}::IsWeakRef' (type 'v8::Handle(const int&) {aka v8::Local(const int&)}') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "isWeakRef", IsWeakRef); ^ ../src/weakref.cc:331:53: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [12], v8::Handle (&)(const int&))' NODE_SET_METHOD(target, "isNearDeath", IsNearDeath); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:331:53: note: cannot convert '{anonymous}::IsNearDeath' (type 'v8::Handle(const int&) {aka v8::Local(const int&)}') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "isNearDeath", IsNearDeath); ^ ../src/weakref.cc:332:43: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [7], )' NODE_SET_METHOD(target, "isDead", IsDead); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:332:43: note: cannot convert '{anonymous}::IsDead' (type '') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "isDead", IsDead); ^ ../src/weakref.cc:333:49: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [10], v8::Handle (&)(const int&))' NODE_SET_METHOD(target, "callbacks", Callbacks); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:333:49: note: cannot convert '{anonymous}::Callbacks' (type 'v8::Handle(const int&) {aka v8::Local(const int&)}') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "callbacks", Callbacks); ^ ../src/weakref.cc:334:53: error: no matching function for call to 'NODE_SET_METHOD(v8::Handle&, const char [12], )' NODE_SET_METHOD(target, "addCallback", AddCallback); ^ In file included from ../src/weakref.cc:19:0: /usr/include/nodejs/src/node.h:236:13: note: candidate: template void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /usr/include/nodejs/src/node.h:236:13: note: template argument deduction/substitution failed: ../src/weakref.cc:334:53: note: cannot convert '{anonymous}::AddCallback' (type '') to type 'v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo&)}' NODE_SET_METHOD(target, "addCallback", AddCallback); ^ ../src/weakref.cc: At global scope: ../src/weakref.cc:271:15: warning: 'v8::Handle {anonymous}::IsDead(const int&)' defined but not used [-Wunused-function] Handle IsDead(const Arguments& args) { ^ ../src/weakref.cc:285:15: warning: 'v8::Handle {anonymous}::AddCallback(const int&)' defined but not used [-Wunused-function] Handle AddCallback(const Arguments& args) { ^