[web-bluetooth] Pull Request: Throw a TypeError instead of a SyntaxError for bad UUIDs.

jyasskin has just submitted a new pull request for 
https://github.com/WebBluetoothCG/web-bluetooth:

== Throw a TypeError instead of a SyntaxError for bad UUIDs. ==
https://heycam.github.io/webidl/#idl-exceptions says that SyntaxError 
is
"for use only by the ECMAScript parser". We use TypeError for bad 
enums,
so it makes sense for malformatted UUID strings too.

Preview at 
https://api.csswg.org/bikeshed/?url=https://raw.githubusercontent.com/jyasskin/web-bluetooth-1/syntax-to-type-error/index.bs

See https://github.com/WebBluetoothCG/web-bluetooth/pull/298

Received on Monday, 26 September 2016 23:58:54 UTC