mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
[v8-init] Access crash key only from main thread | https://chromium-review.googlesource.com/c/chromium/src/+/6827167
This commit is contained in:
@@ -204,8 +204,8 @@ bool AllowWasmCodeGenerationCallback(v8::Local<v8::Context> context,
|
||||
if (node::Environment::GetCurrent(context) == nullptr) {
|
||||
if (!electron::IsRendererProcess())
|
||||
return false;
|
||||
return blink::V8Initializer::WasmCodeGenerationCheckCallbackInMainThread(
|
||||
context, source);
|
||||
return blink::V8Initializer::WasmCodeGenerationCheckCallback(context,
|
||||
source);
|
||||
}
|
||||
|
||||
return node::AllowWasmCodeGenerationCallback(context, source);
|
||||
|
||||
Reference in New Issue
Block a user