- From: Edgar Chen <notifications@github.com>
- Date: Wed, 28 Jul 2021 15:43:39 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 July 2021 22:43:51 UTC
per https://heycam.github.io/webidl/#idl-observable-array,
> Observable array types must only be used as the type of regular attributes.
and readonly regular attributes can be a namespace member, so it seems
```idl
namespace A {
readonly attribute ObservableArray<boolean> foo;
};
```
is allowed.
But in https://heycam.github.io/webidl/#dfn-attribute-getter, we check if the target is interface
> 2. if target is an interface, and attribute is a regular attribute:
> ....
> 4. If attribute’s type is an observable array type, then return esValue’s backing observable array exotic object for attribute.
which makes ObservableArray type in namespace doesn't work.
cc @domenic
--
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/1000
Received on Wednesday, 28 July 2021 22:43:51 UTC