Re: [battery] getBattery() spec doesn't make sense

It's fine if you never reject the promise.  But you need to _return_ the promise, whether it's settled or not.   Right now you have the equivalent of this C code:

    Promise* func() {
      if (someCondition) return;
    }

-- 
GitHub Notification of comment by bzbarsky
Please view or discuss this issue at https://github.com/w3c/battery/issues/16#issuecomment-381154246 using your GitHub account

Received on Friday, 13 April 2018 14:32:15 UTC