From 5cfa51f6441cfcc2acd623c6ffe5a9955da486f7 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Sat, 6 Aug 2022 16:01:32 +0200 Subject: [PATCH] Make feature test more robust --- tools/test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test.cpp b/tools/test.cpp index 06c1f39..238712f 100644 --- a/tools/test.cpp +++ b/tools/test.cpp @@ -3,7 +3,9 @@ using namespace v8; int main(){ +#if (V8_MAJOR_VERSION * 100 + V8_MINOR_VERSION) >= 704 std::unique_ptr platform = platform::NewDefaultPlatform(); V8::InitializePlatform(platform.get()); +#endif V8::Initialize(); }