Re: [heycam/webidl] Strict type checking in WebIDL (#383)

> e.g. methods accepting DOMString should throw TypeError if typeof obj !== 'string'

I think people would be pretty surprised if they can't pass an ES `String` for a `DOMString` argument.

But also, as annevk points out, this is normal behavior for ES, including the ES spec builtins.

-- 
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/383#issuecomment-315768407

Received on Monday, 17 July 2017 14:19:12 UTC