Re: [web-nfc] Avoid creating custom errors (#391)

I agree with @reillyeon.

The funny thing is that push already rejects a promise with an appropriate DOMException, not a NDEFPushErrorEvent.

```js
const reader = new NDEFReader();
try {
  await reader.scan();
  // Scanning is happening...
} catch(e) {
  // NDEF scanning could not start.
}
```

I'll be happy to take action and update spec accordingly.

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/391#issuecomment-544105191 using your GitHub account

Received on Saturday, 19 October 2019 05:52:32 UTC