- From: Jeffrey Yasskin via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Jul 2015 00:32:18 +0000
- To: public-web-bluetooth-log@w3.org
jyasskin has just submitted a new pull request for https://github.com/WebBluetoothCG/web-bluetooth: == Throw NotFoundError when trying to look up a non-existent attribute. == The common case seems to be navigating a tree with certain attributes expected to be there, and null checks make that more complicated. It's still possible to handle optional attributes by catching the exception. We have less experience with the multi-attribute getters, but I'm doing them consistently for now. Fixes #124. Demo at https://rawgit.com/jyasskin/web-bluetooth-1/throw-for-missing-attributes/index.html. @beaufortfrancois @scheib See https://github.com/WebBluetoothCG/web-bluetooth/pull/143
Received on Thursday, 23 July 2015 00:32:21 UTC