File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 976
976
interface PushMessageData {
977
977
ArrayBuffer arrayBuffer();
978
978
Blob blob();
979
+ Uint8Array bytes();
979
980
any json();
980
981
USVString text();
981
982
};
@@ -993,6 +994,11 @@ <h2>
993
994
The < dfn > blob()</ dfn > method, when invoked, MUST return a {{Blob}} whose contents are
994
995
|bytes| and |type| is not provided.
995
996
</ p >
997
+ < p >
998
+ The < dfn > bytes()</ dfn > method, when invoked, MUST return a {{Uint8Array}} backed by a
999
+ {{ArrayBuffer}} whose contents are |bytes|. Exceptions thrown during the creation of the
1000
+ {{ArrayBuffer}} object are re-thrown.
1001
+ </ p >
996
1002
< p data-cite ="encoding ">
997
1003
The < dfn > json()</ dfn > method, when invoked, MUST return the result of invoking the initial
998
1004
value of `JSON`.{{JSON/parse()}} with the result of running < a > utf-8 decode</ a > on |bytes|
You can’t perform that action at this time.
0 commit comments