W3C home > Mailing lists > Public > public-device-apis-log@w3.org > May 2018

Re: [battery] Always return promise in getBattery()

From: Wanming Lin via GitHub <sysbot+gh@w3.org>
Date: Tue, 15 May 2018 14:32:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-389188831-1526394751-sysbot+gh@w3.org>
@anssiko, I don't think we need to update tests since the `promise_test` already checks if a function does not return a Promise.

The error message will be something like:
_"navigator.getBattery().then/catch is not a function"_

GitHub Notification of comment by Honry
Please view or discuss this issue at https://github.com/w3c/battery/pull/17#issuecomment-389188831 using your GitHub account
Received on Tuesday, 15 May 2018 14:32:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:25 UTC