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
@throw [NSExceptionexceptionWithName:NSGenericExceptionreason:[NSStringstringWithFormat:@"Struct \"%s\" is missing from metadata. It may have been blacklisted.", structName.utf8().data()] userInfo:nil];
104
+
NSString* errorMsg = [NSStringstringWithFormat:@"Struct \"%s\" is missing from metadata. It may have been blacklisted.", structName.utf8().data()];
105
+
NS_THROW(errorMsg);
105
106
}
106
107
107
108
ffi_type* ffiType = newffi_type({ .size = 0,
@@ -277,7 +278,7 @@
277
278
278
279
if (!klass || !metadata) {
279
280
if (strcmp(metadata->name(), "NSObject") == 0) {
280
-
@throw [NSExceptionexceptionWithName:NSGenericExceptionreason:@"fatal error: NativeScript cannot create constructor for NSObject."userInfo:nil];
281
+
NS_THROW(@"fatal error: NativeScript cannot create constructor for NSObject.");
281
282
}
282
283
#ifdef DEBUG
283
284
NSLog(@"** Can not create constructor for \"%s\". Casting it to \"NSObject\". **", metadata->name());
@@ -478,9 +479,8 @@
478
479
if (Class klass = objc_getClass(declarationName.utf8().data())) {
479
480
result = globalObject->constructorFor(klass, additionalProtocols);
480
481
} else {
481
-
auto scope = DECLARE_THROW_SCOPE(execState->vm());
482
-
WTF::String message = makeString("Class \"", declarationName, "\" referenced by type encoding not found at runtime.");
0 commit comments