]> Lady’s Gitweb - Etiquette/commitdiff
Give Tag constructors a superclass
authorLady <redacted>
Wed, 14 Jun 2023 04:42:16 +0000 (21:42 -0700)
committerLady <redacted>
Sun, 18 Jun 2023 23:39:35 +0000 (16:39 -0700)
This “simplifies” the static method definitions on Tag constructors
by giving the constructors themselves private fields and using a method
implementation common to all of them (on their prototype chain), rather
than manually defining each with partial application during initial
constructor generation.

This is also somewhat desirable as it means that the expected situation
of :—

```js
Object.getPrototypeOf(Tag).prototype ==
  Object.getPrototypeOf(Object.getPrototypeOf(new Tag))
```

—: is true, which was not formerly the case.


No differences found
This page took 0.017414 seconds and 4 git commands to generate.