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
isolate->ThrowException(ConvertToV8String("First argument must be implementation object"));
743
+
return;
744
+
}
741
745
implementationObject = info[0]->ToObject();
742
746
}
743
747
elseif (info.Length() == 2)
744
748
{
745
-
ASSERT_MESSAGE(info[0]->IsString(), "Invalid extend() call. No name for extend specified. Location: %s", extendLocation.c_str());
746
-
ASSERT_MESSAGE(info[1]->IsObject(), "Invalid extend() call. Named extend should be called with second object parameter containing overridden methods. Location: %s", extendLocation.c_str());
749
+
if (!info[0]->IsString())
750
+
{
751
+
isolate->ThrowException(ConvertToV8String("First argument must be string"));
752
+
return;
753
+
}
754
+
if (!info[1]->IsObject())
755
+
{
756
+
isolate->ThrowException(ConvertToV8String("Second argument must be implementation object"));
0 commit comments