more native without fallback
This commit is contained in:
@@ -1224,8 +1224,11 @@ JSValue cell_rt_native_module_load_named(JSContext *ctx, void *dl_handle, const
|
||||
fn = (cell_compiled_fn)dlsym(dl_handle, "cell_main");
|
||||
used_name = "cell_main";
|
||||
}
|
||||
if (!fn)
|
||||
return JS_RaiseDisrupt(ctx, "symbol not found in native module dylib");
|
||||
if (!fn) {
|
||||
return JS_RaiseDisrupt(ctx,
|
||||
"symbol '%s' (and fallback 'cell_main') not found in native module dylib",
|
||||
sym_name ? sym_name : "(null)");
|
||||
}
|
||||
|
||||
/* Try to read nr_slots from the module */
|
||||
char slots_sym[128];
|
||||
|
||||
Reference in New Issue
Block a user