mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
hm
This commit is contained in:
@@ -216,7 +216,7 @@ bool ScriptExecutionContext::ensureOnMainThread(Function<void(ScriptExecutionCon
|
||||
return false;
|
||||
}
|
||||
|
||||
if (context && context->isContextThread()) {
|
||||
if (WTF::isMainThread()) {
|
||||
task(*context);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user