From 777b2807cd5045757d60126eff55c34b177c50c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Thu, 28 Jul 2022 13:53:42 +0200 Subject: [PATCH] Fix test.cpp: v8 in node 18 needs platform init (#145) I checked that this still works with v8 in node 16 --- tools/test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/test.cpp b/tools/test.cpp index d8560ae..06c1f39 100644 --- a/tools/test.cpp +++ b/tools/test.cpp @@ -3,5 +3,7 @@ using namespace v8; int main(){ + std::unique_ptr platform = platform::NewDefaultPlatform(); + V8::InitializePlatform(platform.get()); V8::Initialize(); }