For code like:
tizen.WebAPIException(tizen.WebAPIException.TYPE_MISMATCH_ERR)
the tizen.WebAPIException.TYPE_MISMATCH_ERR should be number, so that
the WebAPIException can be correctly constructed.
}
for (var value in errors)
- Object.defineProperty(tizen.WebAPIException, errors[value].type, { value: value });
+ Object.defineProperty(tizen.WebAPIException, errors[value].type, { value: parseInt(value) });
exports.WebAPIError = function (code, message, name) {
var _code, _message, _name;