mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
node:worker_threads low-hanging fruit (#18758)
Co-authored-by: 190n <7763597+190n@users.noreply.github.com> Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Co-authored-by: Don Isaac <donald.isaac@gmail.com> Co-authored-by: chloe caruso <git@paperclover.net>
This commit is contained in:
@@ -5578,7 +5578,7 @@ ExceptionOr<Ref<SerializedScriptValue>> SerializedScriptValue::create(JSGlobalOb
|
||||
}
|
||||
if (auto port = JSMessagePort::toWrapped(vm, transferable.get())) {
|
||||
if (port->isDetached())
|
||||
return Exception { DataCloneError, "MessagePort is detached"_s };
|
||||
return Exception { DataCloneError, "MessagePort in transfer list is already detached"_s };
|
||||
messagePorts.append(WTFMove(port));
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user