#include "DataType.h"
#include <pcrecpp.h>
#include <JSUtil.h>
+#include <Logger.h>
using namespace std;
using namespace WrtDeviceApis::Commons;
{
if (JSValueIsNull(m_context, arg) || JSValueIsUndefined(m_context, arg))
{
- LogDebug("null.");
+ LoggerD("null.");
return NULL;
}
else if (JSValueIsObject(m_context, arg) == false)
{
- LogDebug("undefined, not object");
+ LoggerD("undefined, not object");
ThrowMsg(ConversionException, "Not a function nor JS null.");
}
else if (Validator(m_context).isCallback(arg))
{
- LogDebug("Function OK");
+ LoggerD("Function OK");
return arg;
}
}
else if (Validator(m_context).isCallback(arg))
{
- LogDebug("Function OK");
+ LoggerD("Function OK");
return arg;
}