-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do some editorial adjustments to the Sensor algorithms. #425
Conversation
861bc7d
to
418f7df
Compare
- Use Web IDL's definition conventions for methods and getters (whatwg/webidl#882): - Describe getters as "The attr getter steps are [...]". - Describe methods as "The myMethod(arg) method steps are [...]". - Refer to [=this=] as defined in Web IDL rather than a concept that was not defined anywhere. - Use [=this=] rather than the `sensor_instance` variable where possible, as the latter was not defined anywhere. - When invoking the "notify error" abstract operation, pass the arguments in the order expected by the operation.
418f7df
to
90cee3f
Compare
Gets the {{DOMException}} object passed to {{SensorErrorEventInit}}. | ||
The {{SensorErrorEvent/error!!attribute}} getter steps are to return the value it was initialized to. | ||
|
||
It represents the {{DOMException}} object passed to {{SensorErrorEventInit}}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a follow-up we should really properly specify the constructor algorithm and internal slots for SensorErrorEvent instead of this hand-wavy description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I opened an issue for that: #426
Gets the {{DOMException}} object passed to {{SensorErrorEventInit}}. | ||
The {{SensorErrorEvent/error!!attribute}} getter steps are to return the value it was initialized to. | ||
|
||
It represents the {{DOMException}} object passed to {{SensorErrorEventInit}}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I opened an issue for that: #426
@rakuco, thanks for this PR, I'll merge this now and we can handle any follow-ups later. |
Use Web IDL's definition conventions for methods and
getters (Define definition conventions whatwg/webidl#882):
Refer to [=this=] as defined in Web IDL rather than a concept that was not
defined anywhere.
Use [=this=] rather than the
sensor_instance
variable where possible, asthe latter was not defined anywhere.
When invoking the "notify error" abstract operation, pass the arguments in
the order expected by the operation.
Preview | Diff