mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
Fix missing WindowOrWorkerGlobalScope partial interface mixins.
Without the "mixin" keyword, wasm_bindgen_webidl would report: Partial interface WindowOrWorkerGlobalScope missing non-partial interface Also, including the "mixin" keyword here is consistent with the official webidl spec (for example see https://fetch.spec.whatwg.org/#fetch-method)
This commit is contained in:
@ -43,25 +43,25 @@ interface mixin WindowOrWorkerGlobalScope {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// https://fetch.spec.whatwg.org/#fetch-method
|
// https://fetch.spec.whatwg.org/#fetch-method
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
[NewObject, NeedsCallerType]
|
[NewObject, NeedsCallerType]
|
||||||
Promise<Response> fetch(RequestInfo input, optional RequestInit init);
|
Promise<Response> fetch(RequestInfo input, optional RequestInit init);
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://w3c.github.io/webappsec-secure-contexts/#monkey-patching-global-object
|
// https://w3c.github.io/webappsec-secure-contexts/#monkey-patching-global-object
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
readonly attribute boolean isSecureContext;
|
readonly attribute boolean isSecureContext;
|
||||||
};
|
};
|
||||||
|
|
||||||
// http://w3c.github.io/IndexedDB/#factory-interface
|
// http://w3c.github.io/IndexedDB/#factory-interface
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
// readonly attribute IDBFactory indexedDB;
|
// readonly attribute IDBFactory indexedDB;
|
||||||
[Throws]
|
[Throws]
|
||||||
readonly attribute IDBFactory? indexedDB;
|
readonly attribute IDBFactory? indexedDB;
|
||||||
};
|
};
|
||||||
|
|
||||||
// https://w3c.github.io/ServiceWorker/#self-caches
|
// https://w3c.github.io/ServiceWorker/#self-caches
|
||||||
partial interface WindowOrWorkerGlobalScope {
|
partial interface mixin WindowOrWorkerGlobalScope {
|
||||||
[Throws, Func="mozilla::dom::DOMPrefs::DOMCachesEnabled", SameObject]
|
[Throws, Func="mozilla::dom::DOMPrefs::DOMCachesEnabled", SameObject]
|
||||||
readonly attribute CacheStorage caches;
|
readonly attribute CacheStorage caches;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user