| 27 | |
| 28 | namespace { |
| 29 | void initializeV8Engine() { |
| 30 | static std::once_flag flag; |
| 31 | static std::unique_ptr<v8::Platform> platform; |
| 32 | std::call_once(flag, [&]() { |
| 33 | // TODO(rjaber): Not needed, not sure if that will change in the future keeping as a stub. |
| 34 | // v8::V8::InitializeICUDefaultLocation(""); |
| 35 | // v8::V8::InitializeExternalStartupData(""); |
| 36 | platform = v8::platform::NewDefaultPlatform(); |
| 37 | v8::V8::InitializePlatform(platform.get()); |
| 38 | v8::V8::Initialize(); |
| 39 | }); |
| 40 | } |
| 41 | } // namespace |
| 42 | |
| 43 | namespace Valdi::V8 { |
no test coverage detected