Re: [web-nfc] NFCReadingEvent has an attribute with a type of dictionary? (#232)

We got some suggestions related to spec from V8 binding expert, 
"
From the binding perspective, I'd suggest to have a spec discussion to change NFCReadingEvent#message to an operation that returns a NDEFMessage dictionary.
"
with more details of the discussion at https://chromium-review.googlesource.com/c/chromium/src/+/1655092/4/third_party/blink/web_tests/external/wpt/web-nfc/NFCReadingEvent_constructor.https.html#57.

We want to return a V8 object for NFCReadingEvent#message that is actually an IDL dictionary NDEFMessage, the unusual thing is that this V8 object may internally refer to some V8 objects for arbitrary dictionaries (not IDL dictionary, json record data), which triggers V8 crash and is considered kind of discouraging pattern.
`readonly attribute object message;  // NDEFMessage`


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

Received on Tuesday, 25 June 2019 09:47:43 UTC