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::WebAPIException
[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

Reply via email to