Skip to content

Commit

Permalink
[GZNode] Change v8::Handle to v8::Local
Browse files Browse the repository at this point in the history
This is a pure cosmetical change.

From the docs,

"Handle is an alias for Local for historical reasons"

https://v8docs.nodesource.com/node-10.15/d4/da0/v8_8h_source.html#l00428
  • Loading branch information
FelipeGdM committed Feb 1, 2021
1 parent 712c740 commit bdcb5d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gzbridge/GZNode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ GZNode::~GZNode()
};

/////////////////////////////////////////////////
void GZNode::Init(Handle<Object> exports)
void GZNode::Init(Local<Object> exports)
{
Isolate* isolate = exports->GetIsolate();
// Prepare constructor template
Expand Down Expand Up @@ -286,7 +286,7 @@ void GZNode::GetPoseMsgFilterMinimumAge(const
}

/////////////////////////////////////////////////
void InitAll(Handle<Object> exports)
void InitAll(Local<Object> exports)
{
GZNode::Init(exports);
}
Expand Down
2 changes: 1 addition & 1 deletion gzbridge/GZNode.hh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace gzweb

class GZNode : public node::ObjectWrap
{
public: static void Init(v8::Handle<v8::Object> exports);
public: static void Init(v8::Local<v8::Object> exports);

private: GZNode();

Expand Down

0 comments on commit bdcb5d2

Please sign in to comment.