mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +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) {
|
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