Skip to content

Commit

Permalink
Add standalone_executable to crash reporter feature list (#13431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Aug 21, 2024
1 parent 8ace981 commit 999324a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/analytics/analytics_thread.zig
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ pub const Features = struct {
pub var no_avx2: usize = 0;
pub var binlinks: usize = 0;
pub var builtin_modules = std.enums.EnumSet(bun.JSC.HardcodedModule).initEmpty();
pub var standalone_executable: usize = 0;

pub fn formatter() Formatter {
return Formatter{};
Expand Down
1 change: 1 addition & 0 deletions src/bun_js.zig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub const Run = struct {
pub fn bootStandalone(ctx: Command.Context, entry_path: string, graph: bun.StandaloneModuleGraph) !void {
JSC.markBinding(@src());
bun.JSC.initialize(false);
bun.Analytics.Features.standalone_executable += 1;

const graph_ptr = try bun.default_allocator.create(bun.StandaloneModuleGraph);
graph_ptr.* = graph;
Expand Down

0 comments on commit 999324a

Please sign in to comment.