Skip to content

Commit d4eac76

Browse files
committed
feat(core/interaction-output): relax constraint for slicing the buffer
1 parent c1cb3b9 commit d4eac76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/src/interaction-output.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class InteractionOutput implements WoT.InteractionOutput {
7676

7777
const data = this.#valueBuffer ?? (await this.#content.toBuffer());
7878
this.dataUsed = true;
79-
const isPooled = data.byteLength < 4096 && data.buffer.byteLength > data.byteLength;
79+
const isPooled = data.buffer.byteLength > data.byteLength;
8080

8181
if (isPooled) {
8282
this.#buffer = data.buffer.slice(data.byteOffset, data.byteOffset + data.byteLength);

0 commit comments

Comments
 (0)