W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2016

[sensors] SensorReadingEventInit's reading member needs to be required

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Sep 2016 09:48:49 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-177133839-1473932927-sysbot+gh@w3.org>
foolip has just created a new issue for 
https://github.com/w3c/sensors:

== SensorReadingEventInit's reading member needs to be required ==
https://w3c.github.io/sensors/#the-sensor-reading-event-interface

In other words:
```WebIDL
dictionary SensorReadingEventInit : EventInit {
  required SensorReading reading;
};
```

Otherwise, `new SensorReadingEvent('type', {})` will not throw a 
TypeError, and the resulting instance's `reading` attribute would have
 to return null, but it's not nullable (and need not be).

Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/129 using your GitHub account
Received on Thursday, 15 September 2016 09:48:56 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:52 UTC