Re: [heycam/webidl] Editorial: improve language around conversions to JS (#664)

annevk commented on this pull request.



>                      description of |operation|, on |O| if |O| is not <emu-val>null</emu-val>, with |values|
                     as the argument values.
-                1.  Return the result of [=converted to an ECMAScript value|converting=] |R| to
-                    an ECMAScript value of the type |op| is declared to return.

I think this precision is sometimes useful and could lead to different results. At least long term I want to operate on a byte sequence and be able to return it, and let IDL handle the conversion to ByteString or Uint8Array as applicable.

Similar, if all you have is a list of things, you need the type to know what to turn that list into, no?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/664#pullrequestreview-208493388

Received on Wednesday, 27 February 2019 12:24:33 UTC