Skip to content

Commit

Permalink
Fix test.cpp: v8 in node 18 needs platform init (#145)
Browse files Browse the repository at this point in the history
I checked that this still works with v8 in node 16
  • Loading branch information
kapouer authored Jul 28, 2022
1 parent f314696 commit 777b280
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,5 +3,7 @@
using namespace v8;

int main(){
std::unique_ptr<Platform> platform = platform::NewDefaultPlatform();
V8::InitializePlatform(platform.get());
V8::Initialize();
}

0 comments on commit 777b280

Please sign in to comment.