Implement computed field names
Categories
(Core :: JavaScript Engine, enhancement, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox68 | --- | fixed |
People
(Reporter: khyperia, Assigned: khyperia)
References
Details
Attachments
(1 file)
Currently, computed field names are not supported. Let's fix that.
class C {
["x"] = 2;
}
Also, implement some easier, half-related other cases, like:
class C {
2 = 2;
0b01 = 2;
"hello" = 2;
}
Also, fix a related bug: we currently don't emit an initializer for this
class C {
x;
}
which is incorrect, and especially apparent when there's a computed field with side effect as the field-without-an-initializer.
| Assignee | ||
Comment 1•7 years ago
|
||
Comment 3•7 years ago
|
||
Backed out for build bustages at Parser.cpp
Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&fromchange=339f5b718539f0226cb1c9ac638b358d4fe8113a&selectedJob=234875524
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=234875524&repo=autoland&lineNumber=5647
Backout: https://hg.mozilla.org/integration/autoland/rev/1017d1e09b8864cc8ea41f5f29714b5a54d77f77
Comment 4•7 years ago
|
||
There is also this assertion failure: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=234892102&repo=autoland&lineNumber=7518
| Assignee | ||
Comment 6•7 years ago
|
||
Clearing NI - the build issue was super easy, the assertion failure less so. Pushed updated version with both fixed.
Comment 7•7 years ago
|
||
| bugherder | ||
Description
•