Skip to content

Commit

Permalink
Specify default value for optional dictionary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
reillyeon committed Nov 12, 2021
1 parent 760931a commit 07ed81a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scanning.bs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ spec: permissions-1

partial interface Bluetooth {
[SecureContext]
Promise<BluetoothLEScan> requestLEScan(optional BluetoothLEScanOptions options);
Promise<BluetoothLEScan> requestLEScan(optional BluetoothLEScanOptions options = {});
};
</pre>
<div class="note" heading="{{Bluetooth/requestLEScan()}} summary">
Expand Down Expand Up @@ -351,7 +351,7 @@ spec: permissions-1
<pre class="idl">
[Exposed=Window, SecureContext]
interface BluetoothDataFilter {
constructor(optional BluetoothDataFilterInit init);
constructor(optional BluetoothDataFilterInit init = {});
readonly attribute ArrayBuffer dataPrefix;
readonly attribute ArrayBuffer mask;
};
Expand All @@ -370,7 +370,7 @@ spec: permissions-1

[Exposed=Window, SecureContext]
interface BluetoothLEScanFilter {
constructor(optional BluetoothLEScanFilterInit init);
constructor(optional BluetoothLEScanFilterInit init = {});
readonly attribute DOMString? name;
readonly attribute DOMString? namePrefix;
readonly attribute FrozenArray&lt;UUID> services;
Expand Down

0 comments on commit 07ed81a

Please sign in to comment.