[Common] Fix preventing crash in argument validator 25/195425/5
authorLukasz Bardeli <l.bardeli@samsung.com>
Mon, 7 Jan 2019 10:24:28 +0000 (11:24 +0100)
committerLukasz Bardeli <l.bardeli@samsung.com>
Mon, 7 Jan 2019 10:24:28 +0000 (11:24 +0100)
commitfaaf457e2aa1307f0c3406208374d71d5c98827b
tree878a913400a7b00d9fc943e42b72f7ed5ae6bdfa
parent3ebae4da0465b0857c714e32d103511978d6df03
[Common] Fix preventing crash in argument validator

If to method which takes object as parameter, array with one element
of this object will be passed them applicaiton will crash. This fix prevent
such situations and will throw TypeMissmatch

[Verification] Code compiles without error. Tested in chrome console and
execute automatic TCT (modules which have methods taking platform object as parameter -
account, alarm, application, bluetooth, bookmark, calendar, callhistory, contact,
content, download, exif, filesystem, iotcon, mediacontroller, messageport,
messaging, nfc, notification, push, time)
100% passrate

Change-Id: Idfd9ad6f1acc0a6d5fd140dfd655d1cab7d2291a
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
src/utils/utils_api.js