diff options
-rw-r--r-- | src/bun.js/api/bun/subprocess.zig | 3 | ||||
-rw-r--r-- | src/js_ast.zig | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/bun.js/api/bun/subprocess.zig b/src/bun.js/api/bun/subprocess.zig index 1b9682410..2f233ed81 100644 --- a/src/bun.js/api/bun/subprocess.zig +++ b/src/bun.js/api/bun/subprocess.zig @@ -713,6 +713,7 @@ pub const Subprocess = struct { .auto_close = true, }; sink.mode = std.os.S.IFIFO; + sink.watch(fd); if (stdio == .pipe) { if (stdio.pipe) |readable| { return Writable{ @@ -723,7 +724,7 @@ pub const Subprocess = struct { }; } } - // sink.watch(fd); + return Writable{ .pipe = sink }; }, .array_buffer, .blob => { diff --git a/src/js_ast.zig b/src/js_ast.zig index c7197a3b7..7318919ea 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -8044,7 +8044,7 @@ pub const Macro = struct { return Expr.init(E.Number, E.Number{ .value = value.asNumber() }, this.caller.loc); }, .String => { - var sliced = value.toSlice(this.allocator).cloneIfNeeded(this.allocator) catch unreachable; + var sliced = value.toSlice(this.global, this.allocator).cloneIfNeeded(this.allocator) catch unreachable; return Expr.init(E.String, E.String.init(sliced.slice()), this.caller.loc); }, .Promise => { |