Skip to content

Commit

Permalink
Create the native threadsafe_function for test only for N-API greate…
Browse files Browse the repository at this point in the history
…r than 3.
  • Loading branch information
NickNaso committed Jul 23, 2019
1 parent 37b6c18 commit 6720d57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/threadsafe_function/threadsafe_function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <thread>
#include "napi.h"

#if (NAPI_VERSION > 3)

using namespace Napi;

constexpr size_t ARRAY_LENGTH = 10;
Expand Down Expand Up @@ -177,3 +179,5 @@ Object InitThreadSafeFunction(Env env) {

return exports;
}

#endif

0 comments on commit 6720d57

Please sign in to comment.