mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:18:14 +00:00
LibWeb/HTML: Port Window.queueMicrotask() to IDL
This commit is contained in:
parent
129ab02470
commit
351e5ca917
5 changed files with 28 additions and 34 deletions
|
@ -2,6 +2,9 @@
|
|||
#import <Fetch/Response.idl>
|
||||
#import <HTML/MessagePort.idl>
|
||||
|
||||
// FIXME: Support VoidFunction in the IDL parser
|
||||
callback VoidFunction = undefined ();
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope
|
||||
interface mixin WindowOrWorkerGlobalScope {
|
||||
[Replaceable] readonly attribute USVString origin;
|
||||
|
@ -21,7 +24,7 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||
// FIXME: undefined clearInterval(optional long id = 0);
|
||||
|
||||
// microtask queuing
|
||||
// FIXME: undefined queueMicrotask(VoidFunction callback);
|
||||
undefined queueMicrotask(VoidFunction callback);
|
||||
|
||||
// ImageBitmap
|
||||
// FIXME: Promise<ImageBitmap> createImageBitmap(ImageBitmapSource image, optional ImageBitmapOptions options = {});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue