diff options
author | 2022-11-25 20:26:18 -0800 | |
---|---|---|
committer | 2022-11-25 20:26:18 -0800 | |
commit | f27fdf932b7264b62543fbd9a7c9e84bfa4306cf (patch) | |
tree | 2144f60832eed375de71dc290421dfeec170b63e /src | |
parent | d0dbafb32fa0e50b9bcc5a55a2a5616ff67ccecf (diff) | |
download | bun-f27fdf932b7264b62543fbd9a7c9e84bfa4306cf.tar.gz bun-f27fdf932b7264b62543fbd9a7c9e84bfa4306cf.tar.zst bun-f27fdf932b7264b62543fbd9a7c9e84bfa4306cf.zip |
Always watch
Diffstat (limited to 'src')
-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 => { |