aboutsummaryrefslogtreecommitdiff
path: root/src/open.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-12-27 18:06:31 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-27 18:06:31 -0800
commit336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6 (patch)
treef0d56c9f4ea3b318c9c9e635969de46b48d226d5 /src/open.zig
parentc9c7521f4f6763dac8c5910ffcf2451c4c2f60d8 (diff)
downloadbun-336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6.tar.gz
bun-336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6.tar.zst
bun-336a4b6ac2b4a8ee9a5c972f3d74bfff8eca13e6.zip
Prepare to run unit tests & remove some dead code (#92)
* Remove some dead code * :skull: code * Fix the zig tests * [JS Printer] Print integers faster & less scientific notation on decimals * :skull: dead code * skip * Run all the unit tests
Diffstat (limited to 'src/open.zig')
-rw-r--r--src/open.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/open.zig b/src/open.zig
index 7f0988491..f3fac5f96 100644
--- a/src/open.zig
+++ b/src/open.zig
@@ -1,6 +1,5 @@
usingnamespace @import("./global.zig");
const std = @import("std");
-const alloc = @import("./alloc.zig");
const opener = switch (std.Target.current.os.tag) {
.macos => "/usr/bin/open",
@@ -16,7 +15,7 @@ pub fn openURL(url: string) !void {
}
var args_buf = [_]string{ opener, url };
- var child_process = try std.ChildProcess.init(&args_buf, alloc.dynamic);
+ var child_process = try std.ChildProcess.init(&args_buf, default_allocator);
child_process.stderr_behavior = .Pipe;
child_process.stdin_behavior = .Ignore;
child_process.stdout_behavior = .Pipe;
@@ -24,4 +23,3 @@ pub fn openURL(url: string) !void {
_ = try child_process.wait();
return;
}
-