Re: [heycam/webidl] Extend the dfn of object types. (#211)

> Sorry, for Fetch I only need [NewObject] to work for promises. I don't need it to work for strings or nullables. I think I ended up confusing this issue a bit.

It's absolutely all your fault. :)

There are currently no use cases for the `(non_object or object)` construct, so I can just remove that out from the PR, e.g.:

```
The {{object}} type,
all [=interface types=],
the [=promise type=],
the [=exception types=],
the [=buffer source types=], and
[=union types=] whose [=member types|members=] are [=object types=]
are known as <dfn id="dfn-object-type" export>object types</dfn>.
```

On the other hand, as @dontcallmedom mentions in #71, The ServiceWorker spec uses a bunch of constructs with a nullable type, e.g.:

```webidl
[SameObject] readonly attribute (Client or ServiceWorker or MessagePort)? source;
```

Would something like this work to cover that use case and still make sense given the dfn name?

```
The {{object}} type,
all [=interface types=],
the [=promise type=],
the [=exception types=],
the [=buffer source types=],
[=union types=] whose [=member types|members=] are [=object types=], and
[=nullable types=] whose [=inner type=] is an [=object type=]
are known as <dfn id="dfn-object-type" export>object types</dfn>.
```

-- 
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/211#issuecomment-259160517

Received on Tuesday, 8 November 2016 15:05:37 UTC