[heycam/webidl] Conversion to sequence<T> need not throw on a RegExp object (#145)

When [an ECMAScript value V is converted to an IDL sequence<T> value](http://heycam.github.io/webidl/#es-sequence), we don't really need to throw a `TypeError` when *V* is a native`RegExp` object.

Ordinarily, a `RegExp` object wouldn't have `Symbol.iterator` defined.  If it's defined, e.g. `x = new RegExp; x[Symbol.iterator] = function* () { yield 1; }`, then we should be able to iterate over it.

-- 
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/145

Received on Saturday, 13 August 2016 07:06:38 UTC