Issue #2197 - Part 2c: Implement StructuredSerializeOptions for ServiceWorker

Partially based on https://bugzilla.mozilla.org/show_bug.cgi?id=1502802
This commit is contained in:
FranklinDM 2023-04-07 16:39:41 +08:00 • committed by roytam1
commit 4d58139fe1
6 changed files with 39 additions and 2 deletions

View file

@ -94,6 +94,12 @@ public:
const Sequence<JSObject*>& aTransferable,
ErrorResult& aRv);
void
PostMessage(JSContext* aCx,
JS::Handle<JS::Value> aMessage,
const StructuredSerializeOptions& aOptions,
ErrorResult& aRv);
JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
protected: