Bug 1473854 [wpt PR 11823] - sensors: Stop passing undefined as an invalid SensorOpti...
commit1712413c133363fa2280598da0b257b6a39314b7
authorRaphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Wed, 18 Jul 2018 09:46:18 +0000 (18 09:46 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 20 Jul 2018 13:04:12 +0000 (20 13:04 +0000)
treebc2e38db9ed30c5642cf485271f2b71e68c8c772
parent600efb1909b3b56eb37444aa42019cc9df45a5b7
Bug 1473854 [wpt PR 11823] - sensors: Stop passing undefined as an invalid SensorOptions value, a=testonly

Automatic update from web-platform-testssensors: Stop passing undefined as an invalid SensorOptions value (#11823)

While the undefined -> double conversion in WebIDL should indeed throw a
TypeError, we cannot forget we have a WebIDL dictionary (SensorOptions) in
the middle:

    {frequency: undefined}

is essentially equivalent to

    {}

so we do not actually throw a TypeError in this case at all.
--

wpt-commits: 4713ec6523e637619ec607e7882fd1e7ba54cde9
wpt-pr: 11823
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/generic-sensor/generic-sensor-tests.js