]> Lady’s Gitweb - Etiquette/commit
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)
commita3aca34a22550e1555bcdf8a571492213bfa83b0
tree61c7e2e47a3950b00f8d7ea2f3b4efcc33cf86bc
parente20983aca1b36dd368d52e02ee018c2eaf0ca55f
Give Tag constructors a superclass

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.
deps.js
model.js
model.test.js
This page took 0.022508 seconds and 4 git commands to generate.