diff options
author | 2015-09-17 13:56:25 -0700 | |
---|---|---|
committer | 2015-09-17 13:56:25 -0700 | |
commit | 2b09783f8ad3aff8af6b1e5a9e3d799c4df1d4f1 (patch) | |
tree | a3335cdd2edf0ca19a140b3bc91d88c20145ce9a /src/node/ext/credentials.h | |
parent | e8659971a9cedeccb90d39d2dfe784048baa2f19 (diff) |
Update to nan 2.0
Diffstat (limited to 'src/node/ext/credentials.h')
-rw-r--r-- | src/node/ext/credentials.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/node/ext/credentials.h b/src/node/ext/credentials.h index 62957e61c3..1b211175d4 100644 --- a/src/node/ext/credentials.h +++ b/src/node/ext/credentials.h @@ -43,12 +43,12 @@ namespace grpc { namespace node { /* Wrapper class for grpc_credentials structs */ -class Credentials : public ::node::ObjectWrap { +class Credentials : public Nan::ObjectWrap { public: - static void Init(v8::Handle<v8::Object> exports); - static bool HasInstance(v8::Handle<v8::Value> val); + static void Init(v8::Local<v8::Object> exports); + static bool HasInstance(v8::Local<v8::Value> val); /* Wrap a grpc_credentials struct in a javascript object */ - static v8::Handle<v8::Value> WrapStruct(grpc_credentials *credentials); + static v8::Local<v8::Value> WrapStruct(grpc_credentials *credentials); /* Returns the grpc_credentials struct that this object wraps */ grpc_credentials *GetWrappedCredentials(); @@ -69,9 +69,9 @@ class Credentials : public ::node::ObjectWrap { static NAN_METHOD(CreateFake); static NAN_METHOD(CreateIam); static NAN_METHOD(CreateInsecure); - static NanCallback *constructor; + static Nan::Callback *constructor; // Used for typechecking instances of this javascript class - static v8::Persistent<v8::FunctionTemplate> fun_tpl; + static Nan::Persistent<v8::FunctionTemplate> fun_tpl; grpc_credentials *wrapped_credentials; }; |