You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto validArgs = ValidateExtendArguments(info, extendLocation, extendName, implementationObject);
1354
1346
1355
-
if (!validArgs)
1356
-
return;
1347
+
auto hasDot = false;
1348
+
if (info.Length() == 2)
1349
+
{
1350
+
if (info[0].IsEmpty() || !info[0]->IsString())
1351
+
{
1352
+
stringstream ss;
1353
+
ss << "Invalid extend() call. No name for extend specified at location: " << extendLocation.c_str();
1354
+
string exceptionMessage = ss.str();
1355
+
1356
+
throwNativeScriptException(exceptionMessage);
1357
+
}
1358
+
if (info[1].IsEmpty() || !info[1]->IsObject())
1359
+
{
1360
+
stringstream ss;
1361
+
ss << "Invalid extend() call. Named extend should be called with second object parameter containing overridden methods at location: " << extendLocation.c_str();
0 commit comments