how-we-work icon indicating copy to clipboard operation
how-we-work copied to clipboard

Guidance for proposals around new global constructors

Open ptomato opened this issue 3 years ago • 3 comments

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.

ptomato avatar Jun 23 '21 18:06 ptomato

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

ptomato avatar Jun 23 '21 18:06 ptomato

whether namespace objects should have a [@@toStringTag] property

Yes, per the July 2020 meeting (see https://github.com/tc39/ecma262/pull/2057).

bakkot avatar Jun 23 '21 18:06 bakkot

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?

ljharb avatar Jun 23 '21 18:06 ljharb