Bug 1793963 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

OK, I really need to apologize, because after a year, I finally understand that decorators running from bottom to top is desirable.  The reasoning has to do with the _classes_ they return.

For class decorators _which can return a new class_, top-to-bottom implies the earliest decorator returns the outermost class:

```javascript
class C extends B {
}

class B extends A {
}

class A {
}
```

This would be like:
```javascript
@C
@B
class A {
}
```

That's why class decorators run backwards, from bottom to top.

I think the appropriate punishment for so much bug spam is to make me write the class decorators documentation on developer.mozilla.org.

Back to Bug 1793963 Comment 3