Skip to content

Instantly share code, notes, and snippets.

@tobie

tobie/crypto.webidl

Last active Aug 29, 2017
Embed
What would you like to do?
[NoInterfaceObject, Exposed=(Window,Worker)] // seems redundant
interface GlobalCrypto {
[Throws] readonly attribute Crypto crypto;
};
Window implements GlobalCrypto;
WorkerGlobalScope implements GlobalCrypto;
mixin GlobalCrypto {
[Throws] readonly attribute Crypto crypto;
};
Window includes GlobalCrypto; // syntax isn't agreed upon yet
WorkerGlobalScope includes GlobalCrypto;
partial Window {
[Throws] readonly attribute Crypto crypto;
};
partial WorkerGlobalScope {
[Throws] readonly attribute Crypto crypto;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment