mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Update imported WPT utility file
This changed upstream and affects our ability to import BYOB tests. See:
bc9dcbbf1a
This commit is contained in:
parent
2a15b85658
commit
9d33b3632f
Notes:
github-actions[bot]
2025-04-14 23:58:06 +00:00
Author: https://github.com/trflynn89
Commit: 9d33b3632f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4358
1 changed files with 1 additions and 9 deletions
|
@ -215,15 +215,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function transferArrayBufferView(view) {
|
function transferArrayBufferView(view) {
|
||||||
const noopByteStream = new ReadableStream({
|
return structuredClone(view, { transfer: [view.buffer] });
|
||||||
type: 'bytes',
|
|
||||||
pull(c) {
|
|
||||||
c.byobRequest.respond(c.byobRequest.view.byteLength);
|
|
||||||
c.close();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const reader = noopByteStream.getReader({ mode: 'byob' });
|
|
||||||
return reader.read(view).then((result) => result.value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.RandomPushSource = RandomPushSource;
|
self.RandomPushSource = RandomPushSource;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue