Use IDL sequence default value

This commit is contained in:
Kagami Sascha Rosylight 2019-11-04 22:42:10 +09:00
parent 4ad08fff04
commit 01e0b2cb5e
13 changed files with 40 additions and 65 deletions

View file

@ -21,7 +21,7 @@ dictionary BluetoothLEScanFilterInit {
dictionary RequestDeviceOptions {
sequence<BluetoothLEScanFilterInit> filters;
sequence<BluetoothServiceUUID> optionalServices /*= []*/;
sequence<BluetoothServiceUUID> optionalServices = [];
boolean acceptAllDevices = false;
};

View file

@ -8,7 +8,7 @@ dictionary BluetoothPermissionDescriptor : PermissionDescriptor {
DOMString deviceId;
// These match RequestDeviceOptions.
sequence<BluetoothLEScanFilterInit> filters;
sequence<BluetoothServiceUUID> optionalServices/* = []*/;
sequence<BluetoothServiceUUID> optionalServices = [];
boolean acceptAllDevices = false;
};

View file

@ -25,7 +25,7 @@ interface DissimilarOriginWindow : GlobalScope {
void close();
readonly attribute boolean closed;
[Throws] void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer /*= []*/);
[Throws] void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
[Throws] void postMessage(any message, optional WindowPostMessageOptions options = {});
attribute any opener;
void blur();

View file

@ -8,7 +8,7 @@
[Exposed=(Window,Worker)]
interface MessagePort : EventTarget {
[Throws] void postMessage(any message, sequence<object> transfer /*= []*/);
[Throws] void postMessage(any message, sequence<object> transfer);
[Throws] void postMessage(any message, optional PostMessageOptions options = {});
void start();
void close();
@ -19,5 +19,5 @@ interface MessagePort : EventTarget {
};
dictionary PostMessageOptions {
sequence<object> transfer;
sequence<object> transfer = [];
};

View file

@ -64,7 +64,7 @@
void cancelAnimationFrame(unsigned long handle);
[Throws]
void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer /*= []*/);
void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
[Throws]
void postMessage(any message, optional WindowPostMessageOptions options = {});
@ -175,7 +175,6 @@ partial interface Window {
readonly attribute unsigned long runningAnimationCount;
};
dictionary WindowPostMessageOptions {
dictionary WindowPostMessageOptions : PostMessageOptions {
USVString targetOrigin = "/";
sequence<object> transfer;
};