From 0c6ac37ec570f3c3f488e888fcd939414f6b287e Mon Sep 17 00:00:00 2001
From: Marcos Caceres
interface PushMessageData {
ArrayBuffer arrayBuffer();
Blob blob();
+ Uint8Array bytes();
any json();
USVString text();
};
@@ -993,6 +994,11 @@
The blob() method, when invoked, MUST return a {{Blob}} whose contents are
|bytes| and |type| is not provided.
+ The bytes() method, when invoked, MUST return a {{Uint8Array}} backed by a + {{ArrayBuffer}} whose contents are |bytes|. Exceptions thrown during the creation of the + {{ArrayBuffer}} object are re-thrown. +
The json() method, when invoked, MUST return the result of invoking the initial value of `JSON`.{{JSON/parse()}} with the result of running utf-8 decode on |bytes|