Fix fromJS method

This commit is contained in:
Oleg.Korshul
2024-04-11 17:02:21 +03:00
parent 3015aff491
commit 43c05c6041

View File

@ -68,6 +68,8 @@ namespace NSJSON
static CValue fromJS(JSSmart<NSJSBase::CJSValue> jsValue)
{
if (!jsValue.is_init())
return CValue::CreateUndefined();
if (jsValue->isUndefined())
return CValue::CreateUndefined();
if (jsValue->isNull())