mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 06:38:22 +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) {
|
||||
const noopByteStream = new ReadableStream({
|
||||
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);
|
||||
return structuredClone(view, { transfer: [view.buffer] });
|
||||
}
|
||||
|
||||
self.RandomPushSource = RandomPushSource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue