more native without fallback

This commit is contained in:
2026-02-23 10:20:18 -06:00
parent a18584afd3
commit 94c28f0e17
12 changed files with 422 additions and 342 deletions

View File

@@ -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];