[web-nfc] Pull Request: Replace NDEFRecordData data() with multiple getters

Honry has just submitted a new pull request for https://github.com/w3c/web-nfc:

== Replace NDEFRecordData data() with multiple getters ==
```
[NewObject] USVString toText();
[NewObject] ArrayBuffer toArrayBuffer();
[NewObject] any toJSON();
```

- Define a concept named "bytes" for NDEFRecord object
aim to replace the "record's data" in NFC reading algorithm
as which was removed from spec.
- Add algorithm for converting the NDEFRecord object's
associated bytes to a given type for above getters.
- Update examples and miscs.

See https://github.com/w3c/web-nfc/pull/243

Received on Monday, 29 July 2019 09:59:15 UTC