revert wasm_linking_test_host changes

This commit is contained in:
Brendan Hansknecht 2024-12-12 19:22:26 -08:00
parent de18f25a65
commit 6ecf25bd3e
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -33,7 +33,7 @@ export fn read_host_result() i32 {
return host_result; return host_result;
} }
pub export fn main() u8 { pub fn main() !void {
const host = host_called_directly_from_main(); const host = host_called_directly_from_main();
const js = js_called_directly_from_main(); const js = js_called_directly_from_main();
const app = roc__app_proc_1_exposed(); const app = roc__app_proc_1_exposed();
@ -44,8 +44,6 @@ pub export fn main() u8 {
if (@import("builtin").target.cpu.arch != .wasm32) { if (@import("builtin").target.cpu.arch != .wasm32) {
const stdout = @import("std").io.getStdOut().writer(); const stdout = @import("std").io.getStdOut().writer();
stdout.print("{}\n", .{host_result}) catch return 1; try stdout.print("{}\n", .{host_result});
} }
return 0;
} }