chore: upgrade zig to 0.12.0-dev.1828+225fe6ddb (#7671)

* chore: upgrade zig to 0.12.0-dev.1828+225fe6ddb

* open as iterable

* fix building identifier cache

* fix windows build

* fix linux build

* fix linux build
This commit is contained in:
dave caruso
2023-12-16 00:14:15 -08:00
committed by GitHub
parent 925a94ffe6
commit 369e3022e4
179 changed files with 3681 additions and 3688 deletions

View File

@@ -133,7 +133,7 @@ pub const CodeCoverageReport = struct {
writer: anytype,
comptime enable_colors: bool,
) !void {
var failing = fraction.*;
const failing = fraction.*;
const fns = report.functionCoverageFraction();
const lines = report.linesCoverageFraction();
const stmts = report.stmtsCoverageFraction();
@@ -277,7 +277,7 @@ pub const CodeCoverageReport = struct {
ignore_sourcemap_: bool,
) ?CodeCoverageReport {
bun.JSC.markBinding(@src());
var vm = globalThis.vm();
const vm = globalThis.vm();
var result: ?CodeCoverageReport = null;
@@ -353,7 +353,7 @@ pub const ByteRangeMapping = struct {
var map_ = map orelse return null;
const hash = bun.hash(slice.slice());
var entry = map_.getPtr(hash) orelse return null;
const entry = map_.getPtr(hash) orelse return null;
return entry;
}
@@ -365,7 +365,7 @@ pub const ByteRangeMapping = struct {
function_blocks: []const BasicBlockRange,
ignore_sourcemap: bool,
) !CodeCoverageReport {
var line_starts = this.line_offset_table.items(.byte_offset_to_start_of_line);
const line_starts = this.line_offset_table.items(.byte_offset_to_start_of_line);
var executable_lines: Bitset = Bitset{};
var lines_which_have_executed: Bitset = Bitset{};