@@ -982,31 +982,30 @@ <h2>
982
982
};
983
983
</ pre >
984
984
< p >
985
- < a > PushMessageData</ a > objects have an associated [=byte sequence=] set on creation, which
986
- is `null` if there was no data in the < a > push message </ a > .
985
+ < a > PushMessageData</ a > objects have an associated < dfn > bytes </ dfn > (a
986
+ [=byte sequence=]), which is set on creation .
987
987
</ p >
988
988
< p >
989
- The < dfn > arrayBuffer()</ dfn > method, when invoked, MUST return an {{ArrayBuffer}} whose
990
- contents are | bytes| . Exceptions thrown during the creation of the {{ArrayBuffer}} object
991
- are re-thrown.
989
+ The < dfn > arrayBuffer()</ dfn > method steps are to return an {{ArrayBuffer}} whose contents
990
+ are [=this=]'s [= bytes=] . Exceptions thrown during the creation of
991
+ the {{ArrayBuffer}} object are re-thrown.
992
992
</ p >
993
993
< p >
994
- The < dfn > blob()</ dfn > method, when invoked, MUST return a {{Blob}} whose contents are
995
- |bytes| and |type| is not provided .
994
+ The < dfn > blob()</ dfn > method steps are to return a new {{Blob}} object whose contents are
995
+ [=this=]'s [=bytes=] .
996
996
</ p >
997
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
998
+ The < dfn > bytes()</ dfn > method steps are to return a new {{Uint8Array}} backed by a
999
+ {{ArrayBuffer}} whose contents are [=this=]'s [= bytes=] . Exceptions thrown during the creation of the
1000
1000
{{ArrayBuffer}} object are re-thrown.
1001
1001
</ p >
1002
1002
< p data-cite ="encoding ">
1003
- The < dfn > json()</ dfn > method, when invoked, MUST return the result of invoking the initial
1004
- value of `JSON`.{{JSON/parse()}} with the result of running < a > utf-8 decode</ a > on |bytes|
1005
- as argument. Re-throw any exceptions thrown by `JSON`.{{JSON/parse()}}.
1003
+ The < dfn > json()</ dfn > method steps are to return the result of
1004
+ < a > parsing JSON bytes to a JavaScript value</ a > given [=this=]'s [=bytes=].
1006
1005
</ p >
1007
1006
< p data-cite ="encoding ">
1008
- The < dfn > text</ dfn > method, when invoked, MUST return the result of running < a > utf-8
1009
- decode </ a > on | bytes| .
1007
+ The < dfn > text() </ dfn > method steps are to return the result of running < a > UTF-8 decode </ a >
1008
+ on [=this=]'s [= bytes=] .
1010
1009
</ p >
1011
1010
< p >
1012
1011
To < dfn > extract a byte sequence</ dfn > from |object|, run these steps:
0 commit comments