mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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
8e14afe97a
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
Reference in a new issue