how-we-work
how-we-work copied to clipboard
Guidance for proposals around new global constructors
As per the May 2021 plenary (https://github.com/tc39/notes/blob/master/meetings/2021-05/may-26.md#discussion-of-globals-and-guidance-for-future-proposals), this repo should contain a document providing guidance to future proposals that want to introduce new global constructors / namespaces.
One thing not mentioned in the plenary which could go in the guidance, is whether namespace objects should have a [@@toStringTag] property. Seems more helpful than harmful? See https://github.com/tc39/proposal-temporal/issues/1539#issuecomment-864194394
whether namespace objects should have a [@@toStringTag] property
Yes, per the July 2020 meeting (see https://github.com/tc39/ecma262/pull/2057).
The more specific question is, is that just top-level ones, or all? iow, Temporal
surely must, per that consensus - but what about Temporal.now
?