diff options
author | 2022-03-20 06:34:05 -0700 | |
---|---|---|
committer | 2022-03-20 06:34:05 -0700 | |
commit | 2509613bbe11df78811f2fa6f29a2b7ee437d75c (patch) | |
tree | 72f3b74230d6ca467bdf20d56338ef4607e9953a /src/javascript/jsc/api/html_rewriter.zig | |
parent | 0b5a8057f2f16c70a97ebab11c4bca67ecc37d94 (diff) | |
download | bun-2509613bbe11df78811f2fa6f29a2b7ee437d75c.tar.gz bun-2509613bbe11df78811f2fa6f29a2b7ee437d75c.tar.zst bun-2509613bbe11df78811f2fa6f29a2b7ee437d75c.zip |
microptimize
Diffstat (limited to 'src/javascript/jsc/api/html_rewriter.zig')
-rw-r--r-- | src/javascript/jsc/api/html_rewriter.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/javascript/jsc/api/html_rewriter.zig b/src/javascript/jsc/api/html_rewriter.zig index c62a6503f..e314fc18d 100644 --- a/src/javascript/jsc/api/html_rewriter.zig +++ b/src/javascript/jsc/api/html_rewriter.zig @@ -216,7 +216,7 @@ pub const HTMLRewriter = struct { response.cloneInto(result, getAllocator(global.ref())); this.finalizeWithoutDestroy(); - return JSValue.fromRef(Response.Class.make(global.ref(), result)); + return JSValue.fromRef(Response.makeMaybePooled(global.ref(), result)); } var new_context = this.context; @@ -311,7 +311,7 @@ pub const HTMLRewriter = struct { }; return JSC.JSValue.fromRef( - Response.Class.make(sink.global.ref(), sink.response), + Response.makeMaybePooled(sink.global.ref(), sink.response), ); } @@ -327,7 +327,7 @@ pub const HTMLRewriter = struct { if (prev_value.Locked.promise) |promise| { prev_value.Locked.promise = null; promise.asInternalPromise().?.resolve(this.global, JSC.JSValue.fromRef( - Response.Class.make( + Response.makeMaybePooled( this.global.ref(), this.response, ), |