aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/generated_classes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/bindings/generated_classes.zig')
-rw-r--r--src/bun.js/bindings/generated_classes.zig47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/bun.js/bindings/generated_classes.zig b/src/bun.js/bindings/generated_classes.zig
index a53d9bbe4..841e65b21 100644
--- a/src/bun.js/bindings/generated_classes.zig
+++ b/src/bun.js/bindings/generated_classes.zig
@@ -3988,6 +3988,50 @@ pub const JSTimeout = struct {
return Timeout__fromJS(value);
}
+ extern fn TimeoutPrototype__argumentsSetCachedValue(JSC.JSValue, *JSC.JSGlobalObject, JSC.JSValue) void;
+
+ extern fn TimeoutPrototype__argumentsGetCachedValue(JSC.JSValue) JSC.JSValue;
+
+ /// `Timeout.arguments` setter
+ /// This value will be visited by the garbage collector.
+ pub fn argumentsSetCached(thisValue: JSC.JSValue, globalObject: *JSC.JSGlobalObject, value: JSC.JSValue) void {
+ JSC.markBinding(@src());
+ TimeoutPrototype__argumentsSetCachedValue(thisValue, globalObject, value);
+ }
+
+ /// `Timeout.arguments` getter
+ /// This value will be visited by the garbage collector.
+ pub fn argumentsGetCached(thisValue: JSC.JSValue) ?JSC.JSValue {
+ JSC.markBinding(@src());
+ const result = TimeoutPrototype__argumentsGetCachedValue(thisValue);
+ if (result == .zero)
+ return null;
+
+ return result;
+ }
+
+ extern fn TimeoutPrototype__callbackSetCachedValue(JSC.JSValue, *JSC.JSGlobalObject, JSC.JSValue) void;
+
+ extern fn TimeoutPrototype__callbackGetCachedValue(JSC.JSValue) JSC.JSValue;
+
+ /// `Timeout.callback` setter
+ /// This value will be visited by the garbage collector.
+ pub fn callbackSetCached(thisValue: JSC.JSValue, globalObject: *JSC.JSGlobalObject, value: JSC.JSValue) void {
+ JSC.markBinding(@src());
+ TimeoutPrototype__callbackSetCachedValue(thisValue, globalObject, value);
+ }
+
+ /// `Timeout.callback` getter
+ /// This value will be visited by the garbage collector.
+ pub fn callbackGetCached(thisValue: JSC.JSValue) ?JSC.JSValue {
+ JSC.markBinding(@src());
+ const result = TimeoutPrototype__callbackGetCachedValue(thisValue);
+ if (result == .zero)
+ return null;
+
+ return result;
+ }
+
/// Create a new instance of Timeout
pub fn toJS(this: *Timeout, globalObject: *JSC.JSGlobalObject) JSC.JSValue {
JSC.markBinding(@src());
@@ -4030,10 +4074,13 @@ pub const JSTimeout = struct {
@compileLog("Expected Timeout.hasRef to be a callback but received " ++ @typeName(@TypeOf(Timeout.hasRef)));
if (@TypeOf(Timeout.doRef) != CallbackType)
@compileLog("Expected Timeout.doRef to be a callback but received " ++ @typeName(@TypeOf(Timeout.doRef)));
+ if (@TypeOf(Timeout.doRefresh) != CallbackType)
+ @compileLog("Expected Timeout.doRefresh to be a callback but received " ++ @typeName(@TypeOf(Timeout.doRefresh)));
if (@TypeOf(Timeout.doUnref) != CallbackType)
@compileLog("Expected Timeout.doUnref to be a callback but received " ++ @typeName(@TypeOf(Timeout.doUnref)));
if (!JSC.is_bindgen) {
@export(Timeout.doRef, .{ .name = "TimeoutPrototype__doRef" });
+ @export(Timeout.doRefresh, .{ .name = "TimeoutPrototype__doRefresh" });
@export(Timeout.doUnref, .{ .name = "TimeoutPrototype__doUnref" });
@export(Timeout.finalize, .{ .name = "TimeoutClass__finalize" });
@export(Timeout.hasRef, .{ .name = "TimeoutPrototype__hasRef" });