Re: [web-nfc] Change `toRecords()` to `records` (#362)

It seems as simple as checking the length attribute of `records`.

```js
if (record.records.length === 0) {
  // No children records
}
```

`toText()` doesn't fail either, it simply return null.
How is `toRecords` failing differently than returning an empty sequence?

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

Received on Thursday, 3 October 2019 15:40:15 UTC