Skip to content

Commit

Permalink
Bug 1724645 - document StructuredSerializeOptions. r=smaug
Browse files Browse the repository at this point in the history
The web standard linked from MessagePort.webidl doesn't make it quickly clear
what StructuredSerializeOptions is used for so I added a brief summary to make
it quicker to figure out. Note: I don't have much experience with this class so
my description may be incomplete.

Differential Revision: https://phabricator.services.mozilla.com/D142624
  • Loading branch information
mcomella committed Apr 26, 2022
1 parent 9324655 commit 1fb9914
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dom/webidl/MessagePort.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface MessagePort : EventTarget {
attribute EventHandler onmessageerror;
};

// Used to declare which objects should be transferred.
dictionary StructuredSerializeOptions {
sequence<object> transfer = [];
};

0 comments on commit 1fb9914

Please sign in to comment.