- From: Zoltan Kis via GitHub <sysbot+gh@w3.org>
- Date: Thu, 29 Aug 2019 12:31:56 +0000
- To: public-web-nfc@w3.org
In our case we might use `toJSON()` for reads and writes. In both cases, IMHO `null` maps well. On reads, payload length 0 (empty PAYLOAD) will result in `null`. On writes, `null` will translate to empty PAYLOAD and payload length 0. But _in principle_, `toJSON()` returns `any` because it could return any simple or compound type or `null`. It would be nice to have Web IDL support for this! -- GitHub Notification of comment by zolkis Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/310#issuecomment-526163629 using your GitHub account
Received on Thursday, 29 August 2019 12:31:57 UTC