mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix: "match failure" in c.zig file @check other files and handling floats and undefined values in js
This commit is contained in:
parent
462f751902
commit
d23ccdb8d9
@ -1259,6 +1259,12 @@ var zigAnalysis;
|
||||
case "int": {
|
||||
return "" + expr.int;
|
||||
}
|
||||
case "float": {
|
||||
return "" + expr.float.toFixed(2);
|
||||
}
|
||||
case "undefined": {
|
||||
return "undefined";
|
||||
}
|
||||
case "string": {
|
||||
return "\"" + escapeHtml(expr.string) + "\"";
|
||||
}
|
||||
|
||||
@ -3423,7 +3423,9 @@ fn tryResolveRefPath(
|
||||
"failed to match `{s}` in struct",
|
||||
.{child_string},
|
||||
);
|
||||
path[i + 1] = (try self.cteTodo("match failure")).expr;
|
||||
// path[i + 1] = (try self.cteTodo("match failure")).expr;
|
||||
// this are working, check c.zig
|
||||
path[i + 1] = (try self.cteTodo(child_string)).expr;
|
||||
continue :outer;
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user