diff options
author | 2022-09-26 20:35:26 -0700 | |
---|---|---|
committer | 2022-09-26 20:35:26 -0700 | |
commit | 5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb (patch) | |
tree | 46fd8978a7508e7d2f03bc24a8c1119544b7d80c /src/bun.js/bindings/generated_classes.zig | |
parent | 24a9bc23b7e1c7911cb2e146be199d940b9729e6 (diff) | |
download | bun-5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb.tar.gz bun-5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb.tar.zst bun-5875d1419b49b97a78dfeeb9d6f1bd9f00d2eaeb.zip |
Make `Bun.spawn`, FileSink and FileBlobLoader a little more reliable
Diffstat (limited to 'src/bun.js/bindings/generated_classes.zig')
-rw-r--r-- | src/bun.js/bindings/generated_classes.zig | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/bun.js/bindings/generated_classes.zig b/src/bun.js/bindings/generated_classes.zig index 7230de74a..a05d6a958 100644 --- a/src/bun.js/bindings/generated_classes.zig +++ b/src/bun.js/bindings/generated_classes.zig @@ -61,8 +61,11 @@ pub const JSSubprocess = struct { @compileLog("Subprocess.finalize is not a finalizer"); } - if (@TypeOf(Subprocess.getExitStatus) != GetterType) - @compileLog("Expected Subprocess.getExitStatus to be a getter"); + if (@TypeOf(Subprocess.getExitCode) != GetterType) + @compileLog("Expected Subprocess.getExitCode to be a getter"); + + if (@TypeOf(Subprocess.getExited) != GetterType) + @compileLog("Expected Subprocess.getExited to be a getter"); if (@TypeOf(Subprocess.kill) != CallbackType) @compileLog("Expected Subprocess.kill to be a callback"); @@ -90,7 +93,8 @@ pub const JSSubprocess = struct { @export(Subprocess.doRef, .{ .name = "SubprocessPrototype__doRef" }); @export(Subprocess.doUnref, .{ .name = "SubprocessPrototype__doUnref" }); @export(Subprocess.finalize, .{ .name = "SubprocessClass__finalize" }); - @export(Subprocess.getExitStatus, .{ .name = "SubprocessPrototype__getExitStatus" }); + @export(Subprocess.getExitCode, .{ .name = "SubprocessPrototype__getExitCode" }); + @export(Subprocess.getExited, .{ .name = "SubprocessPrototype__getExited" }); @export(Subprocess.getKilled, .{ .name = "SubprocessPrototype__getKilled" }); @export(Subprocess.getPid, .{ .name = "SubprocessPrototype__getPid" }); @export(Subprocess.getStderr, .{ .name = "SubprocessPrototype__getStderr" }); |