Re: [sensors] No way to express an abstract constructor in WebIDL

Yeah. So going through [the constructor 
algorithm](https://w3c.github.io/sensors/#sensor-constructor) I 
remembered why I had closed this: without an identifiable underlying 
hardware sensor, the default behavior is to throw a `TypeError` (see 
step 6).

So I guess it's smarter to turn that algorithm into an abstract 
operation and remove the constructor altogether even if the current 
outcome would be exactly the same.

-- 
GitHub Notification of comment by tobie
Please view or discuss this issue at 
https://github.com/w3c/sensors/issues/19#issuecomment-180367112 using 
your GitHub account

Received on Friday, 5 February 2016 13:51:09 UTC