authorgravatar for paul.verigo@gmail.comPavel Verigo <paul.verigo@gmail.com> 2026-09-30 05:18:52+02:00
committergravatar for paul.verigo@gmail.comPavel Verigo <paul.verigo@gmail.com> 2026-10-20 23:05:50+02:00
logf7f3d24984deb81deb9bcfe99b4eb37e8d7215bf
tree505531812cbed2a8ba055c22e6ddb53a4f2550a0
parentc8bb44618a9c3c7bfff4a9f672a451fdeda1bb02

wasm: undefined allowed limit only to == .strong


1 files changed, 2 insertions(+), 2 deletions(-)

src/link/Wasm.zig+2-2
...@@ -2721,13 +2721,13 @@ pub const FunctionImportId = enum(u32) {...@@ -2721,13 +2721,13 @@ pub const FunctionImportId = enum(u32) {
2721 return switch (unpack(id, wasm)) {2721 return switch (unpack(id, wasm)) {
2722 .object_function_import => |i| {2722 .object_function_import => |i| {
2723 const import = i.value(wasm);2723 const import = i.value(wasm);
2724 return import.flags.binding == .strong and import.module_name != .none;2724 return import.flags.binding == .strong;
2725 },2725 },
2726 .zcu_import => |i| {2726 .zcu_import => |i| {
2727 const zcu = wasm.base.comp.zcu.?;2727 const zcu = wasm.base.comp.zcu.?;
2728 const ip = &zcu.intern_pool;2728 const ip = &zcu.intern_pool;
2729 const ext = ip.indexToKey(ip.getNav(i.ptr(wasm).*).resolved.?.value).@"extern";2729 const ext = ip.indexToKey(ip.getNav(i.ptr(wasm).*).resolved.?.value).@"extern";
2730 return ext.linkage != .weak and ext.lib_name != .none;2730 return ext.linkage == .strong;
2731 },2731 },
2732 };2732 };
2733 }2733 }