Re: [heycam/webidl] Make [Exposed] mandatory, remove [PrimaryGlobal] (#423)

tobie commented on this pull request.



>          interface Window {
           // ...
         };
 
         // By using the same identifier Worker for both SharedWorkerGlobalScope
         // and DedicatedWorkerGlobalScope, both can be addressed in an [Exposed]
         // extended attribute at once.
-        [Global=Worker]
+        [Exposed=Window, Global=Worker]

>From the text right above, my understanding is this should work:

```webidl
        // By using the same identifier Worker for both SharedWorkerGlobalScope
        // and DedicatedWorkerGlobalScope, both can be addressed in an [Exposed]
        // extended attribute at once.
        [Exposed=Worker, Global=Worker]
        interface SharedWorkerGlobalScope : WorkerGlobalScope {
          // ...
        };

        [Exposed=Worker, Global=Worker]
        interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
          // ...
        };
```

-- 
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/pull/423#discussion_r134767568

Received on Wednesday, 23 August 2017 14:28:18 UTC