Issue #2197 - Part 2a: Implement StructuredSerializeOptions for MessagePort

Based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
This commit is contained in:
FranklinDM 2023-04-07 15:55:27 +08:00 committed by roytam1
commit fd982fd298
3 changed files with 22 additions and 1 deletions

View file

@ -495,6 +495,14 @@ MessagePort::PostMessage(JSContext* aCx,
mActor->SendPostMessages(messages);
}
void
MessagePort::PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage,
const StructuredSerializeOptions& aOptions,
ErrorResult& aRv)
{
PostMessage(aCx, aMessage, aOptions.mTransfer, aRv);
}
void
MessagePort::Start()
{