diff options
author | 2022-10-09 13:36:33 +0800 | |
---|---|---|
committer | 2022-10-08 22:36:33 -0700 | |
commit | 36ec06493e5649374a98d1b4068cd8d89d0a9bf6 (patch) | |
tree | 4bc5cd69948aca9e634ae83afe6b7d6ea3b2ca40 /src/bun.js/bindings/generated_classes.zig | |
parent | 6068ad15d4d7a4c3f2a81e554c18a0c13a3174e5 (diff) | |
download | bun-36ec06493e5649374a98d1b4068cd8d89d0a9bf6.tar.gz bun-36ec06493e5649374a98d1b4068cd8d89d0a9bf6.tar.zst bun-36ec06493e5649374a98d1b4068cd8d89d0a9bf6.zip |
Fix fetch response redirected (#1303)
* fix: sync codegen
* fix: generate class script
* fix: sync codegen
* fix: add response redirected property
Diffstat (limited to 'src/bun.js/bindings/generated_classes.zig')
-rw-r--r-- | src/bun.js/bindings/generated_classes.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bun.js/bindings/generated_classes.zig b/src/bun.js/bindings/generated_classes.zig index f26966de0..124602918 100644 --- a/src/bun.js/bindings/generated_classes.zig +++ b/src/bun.js/bindings/generated_classes.zig @@ -75,6 +75,9 @@ pub const JSSubprocess = struct { if (@TypeOf(Subprocess.getPid) != GetterType) @compileLog("Expected Subprocess.getPid to be a getter"); + if (@TypeOf(Subprocess.getStdout) != GetterType) + @compileLog("Expected Subprocess.getStdout to be a getter"); + if (@TypeOf(Subprocess.doRef) != CallbackType) @compileLog("Expected Subprocess.doRef to be a callback"); if (@TypeOf(Subprocess.getStderr) != GetterType) @@ -88,6 +91,9 @@ pub const JSSubprocess = struct { if (@TypeOf(Subprocess.doUnref) != CallbackType) @compileLog("Expected Subprocess.doUnref to be a callback"); + if (@TypeOf(Subprocess.getStdin) != GetterType) + @compileLog("Expected Subprocess.getStdin to be a getter"); + if (!JSC.is_bindgen) { @export(Subprocess.constructor, .{ .name = "SubprocessClass__construct" }); @export(Subprocess.doRef, .{ .name = "SubprocessPrototype__doRef" }); @@ -1001,6 +1007,9 @@ pub const JSResponse = struct { if (@TypeOf(Response.getOK) != GetterType) @compileLog("Expected Response.getOK to be a getter"); + if (@TypeOf(Response.getRedirected) != GetterType) + @compileLog("Expected Response.getRedirected to be a getter"); + if (@TypeOf(Response.getStatus) != GetterType) @compileLog("Expected Response.getStatus to be a getter"); @@ -1036,6 +1045,7 @@ pub const JSResponse = struct { @export(Response.getHeaders, .{ .name = "ResponsePrototype__getHeaders" }); @export(Response.getJSON, .{ .name = "ResponsePrototype__getJSON" }); @export(Response.getOK, .{ .name = "ResponsePrototype__getOK" }); + @export(Response.getRedirected, .{ .name = "ResponsePrototype__getRedirected" }); @export(Response.getResponseType, .{ .name = "ResponsePrototype__getResponseType" }); @export(Response.getStatus, .{ .name = "ResponsePrototype__getStatus" }); @export(Response.getStatusText, .{ .name = "ResponsePrototype__getStatusText" }); |