Skip to content

Commit 5ce0b10

Browse files
committed
Use Local<> instead of deprecated Handle<>
1 parent b1e02f3 commit 5ce0b10

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

src/njsConnection.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Nan::Persistent<FunctionTemplate> njsConnection::connectionTemplate_s;
7171
// Initialization function of Connection class. Maps functions and properties
7272
// from JS to C++.
7373
//-----------------------------------------------------------------------------
74-
void njsConnection::Init(Handle<Object> target)
74+
void njsConnection::Init(Local<Object> target)
7575
{
7676
Nan::HandleScope scope;
7777
Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(New);
@@ -549,7 +549,7 @@ bool njsConnection::ProcessBinds(Nan::NAN_METHOD_ARGS_TYPE args,
549549
// njsConnection::ProcessBindsByName()
550550
// Get bind variables from JS (by name).
551551
//-----------------------------------------------------------------------------
552-
bool njsConnection::ProcessBindsByName(Handle<Object> bindObj, njsBaton *baton)
552+
bool njsConnection::ProcessBindsByName(Local<Object> bindObj, njsBaton *baton)
553553
{
554554
Nan::HandleScope scope;
555555
Local<Array> array = bindObj->GetOwnPropertyNames();
@@ -582,7 +582,7 @@ bool njsConnection::ProcessBindsByName(Handle<Object> bindObj, njsBaton *baton)
582582
// njsConnection::ProcessBindsByPos()
583583
// Get bind variables from JS (by position).
584584
//-----------------------------------------------------------------------------
585-
bool njsConnection::ProcessBindsByPos(Handle<Array> binds, njsBaton *baton)
585+
bool njsConnection::ProcessBindsByPos(Local<Array> binds, njsBaton *baton)
586586
{
587587
Nan::HandleScope scope;
588588

src/njsConnection.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class njsConnection: public njsCommon {
7777
njsVariable *vars, uint32_t numVars);
7878
static bool ProcessVars(njsBaton *baton, njsVariable *vars,
7979
uint32_t numVars, uint32_t numElements);
80-
static void Init(Handle<Object> target);
80+
static void Init(Local<Object> target);
8181
bool IsValid() const { return (dpiConnHandle) ? true : false; }
8282
njsErrorType GetInvalidErrorType() const { return errInvalidConnection; }
8383

@@ -158,8 +158,8 @@ class njsConnection: public njsCommon {
158158
static bool PrepareAndBind(njsBaton* baton);
159159
static bool ProcessBinds(Nan::NAN_METHOD_ARGS_TYPE args,
160160
unsigned int index, njsBaton *baton);
161-
static bool ProcessBindsByName(Handle<Object> bindObj, njsBaton *baton);
162-
static bool ProcessBindsByPos(Handle<Array> bindarray, njsBaton *baton);
161+
static bool ProcessBindsByName(Local<Object> bindObj, njsBaton *baton);
162+
static bool ProcessBindsByPos(Local<Array> bindarray, njsBaton *baton);
163163
static bool ProcessBind(Local<Value> bindTypes, njsVariable *var,
164164
bool byPosition, njsBaton *baton);
165165
static bool ProcessBindValue(Local<Value> bindValue, njsVariable *var,

src/njsIntLob.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Nan::Persistent<FunctionTemplate> njsILob::iLobTemplate_s;
7070
// Initialization function of ILob class. Maps functions and properties from
7171
// JS to C++.
7272
//-----------------------------------------------------------------------------
73-
void njsILob::Init(Handle<Object> target)
73+
void njsILob::Init(Local<Object> target)
7474
{
7575
Nan::HandleScope scope;
7676

src/njsIntLob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ friend class njsConnection;
102102
//-----------------------------------------------------------------------------
103103
class njsILob : public njsCommon {
104104
public:
105-
static void Init(Handle<Object> target);
105+
static void Init(Local<Object> target);
106106
static Local<Object> CreateFromProtoLob(njsProtoILob *protoLob);
107107
bool IsValid() const { return (dpiLobHandle) ? true : false; }
108108
njsErrorType GetInvalidErrorType() const { return errInvalidLob; }

src/njsOracle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ njsOracledb::njsOracledb()
9595
// njsOracledb::Init()
9696
// Initialization function. Maps functions and properties from JS to C++.
9797
//-----------------------------------------------------------------------------
98-
void njsOracledb::Init(Handle<Object> target)
98+
void njsOracledb::Init(Local<Object> target)
9999
{
100100
Nan::HandleScope scope;
101101
dpiErrorInfo errorInfo;
@@ -1189,7 +1189,7 @@ void njsOracledb::ThrowDPIError(void)
11891189
//-----------------------------------------------------------------------------
11901190
extern "C"
11911191
{
1192-
static void init(Handle<Object> target)
1192+
static void init(Local<Object> target)
11931193
{
11941194
njsOracledb::Init(target);
11951195
njsConnection::Init(target);

src/njsOracle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class njsOracledb: public njsCommon
108108
{
109109
public:
110110

111-
static void Init(Handle<Object> target);
111+
static void Init(Local<Object> target);
112112

113113
bool getAutoCommit() const { return autoCommit; }
114114
unsigned int getOutFormat() const { return outFormat; }

src/njsPool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Nan::Persistent<FunctionTemplate> njsPool::poolTemplate_s;
6969
// Initialization function of Pool class. Maps functions and properties
7070
// from JS to C++.
7171
//-----------------------------------------------------------------------------
72-
void njsPool::Init(Handle<Object> target)
72+
void njsPool::Init(Local<Object> target)
7373
{
7474
Nan::HandleScope scope;
7575

src/njsPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ using namespace node;
6767
class njsPool: public njsCommon {
6868
public:
6969

70-
static void Init(Handle<Object> target);
70+
static void Init(Local<Object> target);
7171
static Local<Object> CreateFromBaton(njsBaton *baton);
7272
bool IsValid() const { return (dpiPoolHandle) ? true : false; }
7373
njsErrorType GetInvalidErrorType() const { return errInvalidPool; }

src/njsResultSet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ njsResultSet::~njsResultSet()
8585
// Initialization function of ResultSet class. Maps functions and properties
8686
// from JS to C++.
8787
//-----------------------------------------------------------------------------
88-
void njsResultSet::Init(Handle<Object> target)
88+
void njsResultSet::Init(Local<Object> target)
8989
{
9090
Nan::HandleScope scope;
9191
Local<FunctionTemplate> temp = Nan::New<FunctionTemplate>(New);

src/njsResultSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ using namespace node;
6868
class njsResultSet: public njsCommon {
6969
public:
7070

71-
static void Init(Handle<Object> target);
71+
static void Init(Local<Object> target);
7272
bool IsValid() const;
7373
njsErrorType GetInvalidErrorType() const { return errInvalidResultSet; }
7474
static Local<Object> CreateFromBaton(njsBaton *baton);

0 commit comments

Comments
 (0)