Sorry  'TypeMismatchError' is referenced by other web device APIs in the 
tizen-extensions-crosswalk repository (grep 'TYPE_MISMATCH_ERR' rather than 
'TypeMismatchError'). But we still should throw TypeError since 
TypeMismatchError is already deprecated.

Thanks,
Zhiqiang


> -----Original Message-----
> From: Crosswalk-dev [mailto:crosswalk-dev-bounces@lists.crosswalk-
> project.org] On Behalf Of Zhang, Zhiqiang
> Sent: Monday, August 25, 2014 13:49
> To: crosswalk-dev
> Subject: [Crosswalk-dev] Should throw TypeError instead of
> TypeMismatchError
> 
> Hi,
> 
> Tizen API [1] defines 'TypeMismatchError' based on the specification [2];
> however, it is not referenced by other web device APIs in the tizen-
> extensions-crosswalk repository (grep the keyword in the latest code repo).
> This results in XWALK-1659 [3].
> 
> Moreover, TypeMismatchError is already deprecated. We should throw
> TypeError instead of TypeMismatchError when the given argument is
> mismatched.
> 
> This aligns behavior with WebIDL, Blink, Gecko and Trident.
> 
> Additional Information:
> - https://www.w3.org/Bugs/Public/show_bug.cgi?id=19898
> - https://www.w3.org/Bugs/Public/show_bug.cgi?id=19921
> - https://codereview.chromium.org/235123002/
> - https://bugs.webkit.org/show_bug.cgi?id=101604
> 
> Thanks,
> Zhiqiang
> 
> [1] https://github.com/crosswalk-project/tizen-extensions-
> crosswalk/blob/master/tizen/tizen_api.js
> [2] https://developer.tizen.org/dev-
> guide/2.2.1/org.tizen.web.device.apireference/tizen/tizen.html#::Tizen::We
> bAPIException
> [3] https://crosswalk-project.org/jira/browse/XWALK-1659
> _______________________________________________
> Crosswalk-dev mailing list
> Crosswalk-dev@lists.crosswalk-project.org
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to