Skip to content

Commit

Permalink
add anonymous namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Feb 12, 2019
1 parent cf22c94 commit 03b319b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/asyncworker-persistent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

using namespace Napi;

namespace {

class PersistentTestWorker : public AsyncWorker {
public:
static void DoWork(const CallbackInfo& info) {
Expand Down Expand Up @@ -79,6 +81,8 @@ class PersistentTestWorker : public AsyncWorker {
bool _succeed;
};

} // end of anonymous namespace

Object InitPersistentAsyncWorker(Env env) {
Object exports = Object::New(env);
exports["doWork"] = Function::New(env, PersistentTestWorker::DoWork);
Expand Down

0 comments on commit 03b319b

Please sign in to comment.