aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api/html_rewriter.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/api/html_rewriter.zig')
-rw-r--r--src/bun.js/api/html_rewriter.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bun.js/api/html_rewriter.zig b/src/bun.js/api/html_rewriter.zig
index eb602223b..a3632bf32 100644
--- a/src/bun.js/api/html_rewriter.zig
+++ b/src/bun.js/api/html_rewriter.zig
@@ -308,7 +308,7 @@ pub const HTMLRewriter = struct {
doc.ctx = this;
}
- const chunk_size = @maximum(size_hint orelse 16384, 1024);
+ const chunk_size = @max(size_hint orelse 16384, 1024);
this.rewriter = builder.build(
.UTF8,
.{
@@ -418,7 +418,7 @@ pub const HTMLRewriter = struct {
.preallocated_parsing_buffer_size = if (input_size == JSC.WebCore.Blob.max_size)
1024
else
- @maximum(input_size, 1024),
+ @max(input_size, 1024),
.max_allowed_memory_usage = std.math.maxInt(u32),
},
false,
@@ -594,7 +594,7 @@ pub const HTMLRewriter = struct {
// sink.rewriter = builder.build(
// .UTF8,
// .{
- // .preallocated_parsing_buffer_size = @maximum(original.body.len(), 1024),
+ // .preallocated_parsing_buffer_size = @max(original.body.len(), 1024),
// .max_allowed_memory_usage = std.math.maxInt(u32),
// },
// false,
@@ -1467,13 +1467,13 @@ pub const AttributeIterator = struct {
\\ }
\\
\\ #iterator;
- \\
+ \\
\\ [Symbol.iterator]() {
\\ return this;
\\ }
- \\
+ \\
\\ next() {
- \\ if (this.#iterator === null)
+ \\ if (this.#iterator === null)
\\ return {done: true};
\\ var value = this.#iterator.next();
\\ if (!value) {