if (argumentCount>=1) {
watchId = converter.toLong(arguments[0]);
} else {
- ThrowMsg(ConversionException, "Wrong parameter type.");
+ watchId = converter.toLong(JSValueMakeUndefined(context));
}
LoggerD("Make sync operation with watchId: "<<watchId);