Support decorator expressions in Parser
Categories
(Core :: JavaScript Engine, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
A first step to implementing the decorators proposal is to add support in the parser for decorator expressions.
| Assignee | ||
Comment 1•3 years ago
|
||
This is necessary to be able to skip tests when we haven't built with support
for decorators.
| Assignee | ||
Comment 2•3 years ago
|
||
This should be a contextual keyword to avoid conflicting with existing
uses of the identifier. It's inserted out of alphabetical order to
avoid having to make the range conditional on whether ENABLE_DECORATORS
is defined.
Depends on D154187
| Assignee | ||
Comment 3•3 years ago
|
||
This adds support for decorator expressions inside classes for methods
and fields. Support for class declarations and expressions is added in
the next commit.
Depends on D154188
| Assignee | ||
Comment 4•3 years ago
|
||
This adds decorator support to class definitions and expressions
Depends on D154189
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Backed out for causing reftest failures with getBuildConfiguration
- Backout link
- Push with failures
- Failure Log
- Failure line: REFTEST ERROR | EXCEPTION: ReferenceError: getBuildConfiguration is not defined
| Assignee | ||
Comment 7•3 years ago
|
||
I'm going to move the new tests to jit-test, it looks like getBuildConfiguration is normally only used with them, although this did pass locally and on some try runs 🤔
| Assignee | ||
Comment 8•3 years ago
|
||
This moves the decorator tests to jit-test because getBuildConfiguration()
doesn't seem to be consistently available while running jstests.
This also fixes two tests that were not passing with decorators enabled.
Depends on D154190
Comment 10•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/64f08575ffaa
https://hg.mozilla.org/mozilla-central/rev/28f32492d905
https://hg.mozilla.org/mozilla-central/rev/9cfb9c8223e2
https://hg.mozilla.org/mozilla-central/rev/b985565ad43a
https://hg.mozilla.org/mozilla-central/rev/6b7c23368488
Description
•