From: Pawel Andruszkiewicz Date: Fri, 12 Jun 2015 08:55:28 +0000 (+0200) Subject: [MessagingEmail] Fixed argument check in stopSync(). X-Git-Tag: submit/tizen/20150702.103311^2~2^2~49^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1299833a63332aa4b7aa1b1289db0c9b95f81830;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [MessagingEmail] Fixed argument check in stopSync(). [Verification] Following TCT should pass: MessageService_email_stopSync_missarg MessageService_email_stopSync_opId_invalid Change-Id: If3e8f6296cf98543a449197a11d167836875abff Signed-off-by: Pawel Andruszkiewicz --- diff --git a/src/messaging/messaging_api.js b/src/messaging/messaging_api.js index 46f11095..4ce117e2 100755 --- a/src/messaging/messaging_api.js +++ b/src/messaging/messaging_api.js @@ -938,11 +938,6 @@ MessageService.prototype.stopSync = function () { {name: 'opId', type: types_.LONG} ]); - // Additionally to pass the MessageService_email_stopSync_opId_TypeMismatch test - if (!isFinite(arguments[0])) { - throw new WebAPIException(WebAPIException.TYPE_MISMATCH_ERR); - } - var self = this; bridge.sync({ cmd: 'MessageService_stopSync',