Change-Id: If49b8dfc106e07e89de5d445d0024b1608c35fb1
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
'Argument "' + name + '" cannot be null.');
}
} else {
+ if (!_type.isFunction(val)) {
+ if (_type.isEmptyObject(val)) {
+ throw new tizen.WebAPIException(tizen.WebAPIException.TYPE_MISMATCH_ERR,
+ 'Argument "' + name + '" shouldn\'t be an empty object.');
+ }
+ }
if (!_type.isObject(val)) {
throw new tizen.WebAPIException(tizen.WebAPIException.TYPE_MISMATCH_ERR,
'Argument "' + name + '" should be an object.');