Re: [sensors] Garbage collection behavior unclear in Generic Sensor spec

Thanks for your implementation feedback, excited to hear Moddable implements the Generic Sensor API.

I think the test for "Deactivate a sensor object" is correct. @rakuco and @Honry to confirm.

It is correct that the https://w3c.github.io/sensors/#deactivate-a-sensor-object abstract operation invoked when a `Sensor` object is eligible for garbage collection does not set the state to `idle`. Only https://w3c.github.io/sensors/#sensor-stop and https://w3c.github.io/sensors/#notify-error abstract operations do.

You should consider the normative specification text authoritative over the diagrams. A possible clarification to the diagram would perhaps be to replace "onerror" with "notify error".

I'll let others to chime in.

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

Received on Wednesday, 19 September 2018 08:16:06 UTC