Skip to content

Instantly share code, notes, and snippets.

@tobie
Last active August 29, 2017 13:54
Show Gist options
  • Save tobie/999f7d5bcc3a7767f75945ad683162bb to your computer and use it in GitHub Desktop.
Save tobie/999f7d5bcc3a7767f75945ad683162bb to your computer and use it in GitHub Desktop.
[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