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(); }