Skip to content

Commit b574bb9

Browse files
author
Raphael Kubo da Costa
authored
initialize a sensor object: Explicitly require |options| to be a SensorOptions (#439)
This algorithm, invoked by the constructor of interfaces deriving from `Sensor`, was accepting any dictionary. This meant it was possible, for example, for any member (including `frequency`) to actually have any type whatsoever. Be more strict and require `options` to be a `SensorsOptions` instance, or an instance of a dictionary inheriting from `SensorOptions`.
1 parent 9711ca4 commit b574bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ to {{SensorErrorEventInit}}.
12681268

12691269
: input
12701270
:: |sensor_instance|, a {{Sensor}} object.
1271-
:: |options|, a [=dictionary=] object.
1271+
:: |options|, a {{SensorOptions}} dictionary instance.
12721272
: output
12731273
:: None
12741274

0 commit comments

Comments
 (0)