- From: Donna Wu via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 May 2019 03:19:21 +0000
- To: public-web-nfc@w3.org
DonnaWuDongxia has just created a new issue for https://github.com/w3c/web-nfc: == Update NDEFRecordData typedef to use "double" rather than "unrestricted double". == typedef (DOMString or double or ArrayBuffer or Dictionary) NDEFRecordData; As Reilly has pointed out in the code review[1] that: According to the specification[1] a Number should be expressed as a JSON type record. Also, since JSON cannot represent Infinity and -Infinity as much as it cannot represent NaN[3] the typedef should be updated to use "double" rather than "unrestricted double". [1]: https://chromium-review.googlesource.com/c/chromium/src/+/1628587/6/third_party/blink/renderer/modules/nfc/nfc.cc#104 [2]: https://w3c.github.io/web-nfc/#data-mapping [3]: NOTE-4 in 24.5.2 JSON.stringify section in http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/228 using your GitHub account
Received on Wednesday, 29 May 2019 03:19:23 UTC