Skip to content

Commit

Permalink
Fix bug for old v8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Dec 21, 2021
1 parent ddb1a15 commit bd2d7a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ void start_v8_isolate(void *dll){
platformptr = platform.get();
platform.release(); //UBSAN complains if platform is destroyed when out of scope
#else
v8::V8::InitializePlatform(v8::platform::CreateDefaultPlatform());
platformptr = v8::platform::CreateDefaultPlatform();
v8::V8::InitializePlatform(platformptr);
#endif
v8::V8::Initialize();
v8::Isolate::CreateParams create_params;
Expand Down

0 comments on commit bd2d7a1

Please sign in to comment.