From c2ec47ff320fc52298d9488ebbc2d89a19a0ec8a Mon Sep 17 00:00:00 2001 From: Brúnó Salomon <35275408+bru02@users.noreply.github.com> Date: Sat, 19 Aug 2023 04:59:23 +0200 Subject: feat: add self-closing & can-have-content (#4206) --- src/bun.js/bindings/generated_classes.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/bun.js/bindings/generated_classes.zig') diff --git a/src/bun.js/bindings/generated_classes.zig b/src/bun.js/bindings/generated_classes.zig index 70cf4728d..bf1942fd6 100644 --- a/src/bun.js/bindings/generated_classes.zig +++ b/src/bun.js/bindings/generated_classes.zig @@ -1824,6 +1824,9 @@ pub const JSElement = struct { if (@TypeOf(Element.before) != CallbackType) @compileLog("Expected Element.before to be a callback but received " ++ @typeName(@TypeOf(Element.before))); + if (@TypeOf(Element.getCanHaveContent) != GetterType) + @compileLog("Expected Element.getCanHaveContent to be a getter"); + if (@TypeOf(Element.getAttribute) != CallbackType) @compileLog("Expected Element.getAttribute to be a callback but received " ++ @typeName(@TypeOf(Element.getAttribute))); if (@TypeOf(Element.hasAttribute) != CallbackType) @@ -1846,6 +1849,9 @@ pub const JSElement = struct { if (@TypeOf(Element.replace) != CallbackType) @compileLog("Expected Element.replace to be a callback but received " ++ @typeName(@TypeOf(Element.replace))); + if (@TypeOf(Element.getSelfClosing) != GetterType) + @compileLog("Expected Element.getSelfClosing to be a getter"); + if (@TypeOf(Element.setAttribute) != CallbackType) @compileLog("Expected Element.setAttribute to be a callback but received " ++ @typeName(@TypeOf(Element.setAttribute))); if (@TypeOf(Element.setInnerContent) != CallbackType) @@ -1862,8 +1868,10 @@ pub const JSElement = struct { @export(Element.finalize, .{ .name = "ElementClass__finalize" }); @export(Element.getAttribute, .{ .name = "ElementPrototype__getAttribute" }); @export(Element.getAttributes, .{ .name = "ElementPrototype__getAttributes" }); + @export(Element.getCanHaveContent, .{ .name = "ElementPrototype__getCanHaveContent" }); @export(Element.getNamespaceURI, .{ .name = "ElementPrototype__getNamespaceURI" }); @export(Element.getRemoved, .{ .name = "ElementPrototype__getRemoved" }); + @export(Element.getSelfClosing, .{ .name = "ElementPrototype__getSelfClosing" }); @export(Element.getTagName, .{ .name = "ElementPrototype__getTagName" }); @export(Element.hasAttribute, .{ .name = "ElementPrototype__hasAttribute" }); @export(Element.onEndTag, .{ .name = "ElementPrototype__onEndTag" }); -- cgit v1.2.3