We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9409cb2 commit 6db49c9Copy full SHA for 6db49c9
core/src/napi/v8/js_native_api_v8.cc
@@ -241,7 +241,7 @@ V8VM::V8VM() {
241
{
242
std::lock_guard<std::mutex> lock(mutex_);
243
if (platform_ != nullptr) {
244
-#ifdef V8_X5_LITE
+#if defined(V8_X5_LITE) && defined(THREAD_LOCAL_PLATFORM)
245
TDF_BASE_DLOG(INFO) << "InitializePlatform";
246
v8::V8::InitializePlatform(platform_.get());
247
#endif
@@ -250,7 +250,7 @@ V8VM::V8VM() {
250
platform_ = v8::platform::NewDefaultPlatform();
251
v8::V8::SetFlagsFromString("--wasm-disable-structured-cloning",
252
strlen("--wasm-disable-structured-cloning"));
253
+#if defined(V8_X5_LITE)
254
v8::V8::InitializePlatform(platform_.get(), true);
255
#else
256
0 commit comments