[heycam/webidl] Do records purposefully throw on any object with an enumerable Symbol-named property? (#294)

Walking through https://heycam.github.io/webidl/#es-to-record for an object with an enumerable Symbol-named property, what happens?

1. [[OwnPropertyKeys]] includes the symbol in the list.
2. desc.[[Enumerable]] is true.
3. Converting to the key type calls https://heycam.github.io/webidl/#es-to-DOMString (or one of the other string conversion functions), which calls ToString, which lands in https://tc39.github.io/ecma262/#sec-tostring and throws.

Is this by-design?

// cc @jyasskin @domenic @tobie @heycam @annevk 

-- 
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/issues/294

Received on Friday, 3 February 2017 01:22:14 UTC