Skip to content

Commit

Permalink
Make feature test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 6, 2022
1 parent 5959ac7 commit 5cfa51f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
using namespace v8;

int main(){
#if (V8_MAJOR_VERSION * 100 + V8_MINOR_VERSION) >= 704
std::unique_ptr<Platform> platform = platform::NewDefaultPlatform();
V8::InitializePlatform(platform.get());
#endif
V8::Initialize();
}

0 comments on commit 5cfa51f

Please sign in to comment.