[heycam/webidl] Everything is a module (#676)

#675 reminded me of an idea by @lukewagner that everything should be a module, somehow, so it'd be easier to use from WebAssembly. If that came to pass we'd probably need more granular `[SecureContext]` and `[Exposed]` annotations.

It might also make sens that inside a module we'd use `[AvailableIn]` rather than `[Exposed]` so that the latter can be reserved for truly exposing something on a global, whereas `[AvailableIn]` (bikeshedding welcome) would indicate where it's functional. E.g.,
```webidl
[AvailableIn=Window]
module dom {
  [Exposed=Window]
  interface Node { ... };

  ...
};
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/676

Received on Monday, 4 March 2019 09:03:57 UTC