mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
LibWeb/HTML: Port Window.structuredClone() to IDL
This commit is contained in:
parent
a31c561a5a
commit
129ab02470
8 changed files with 42 additions and 25 deletions
|
@ -1,5 +1,6 @@
|
|||
#import <Fetch/Request.idl>
|
||||
#import <Fetch/Response.idl>
|
||||
#import <HTML/MessagePort.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
|
||||
interface mixin WindowOrWorkerGlobalScope {
|
||||
|
@ -27,7 +28,7 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||
// FIXME: Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, long sx, long sy, long sw, long sh, optional ImageBitmapOptions options = {});
|
||||
|
||||
// structured cloning
|
||||
// FIXME: any structuredClone(any value, optional StructuredSerializeOptions options = {});
|
||||
any structuredClone(any value, optional StructuredSerializeOptions options = {});
|
||||
|
||||
// https://fetch.spec.whatwg.org/#fetch-method
|
||||
[NewObject] Promise<Response> fetch(RequestInfo input, optional RequestInit init = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue