Closed
Bug 1655086
Opened 4 years ago
Closed 4 years ago
Verify semantics for throwing private field initializers
Categories
(Core :: JavaScript Engine, task, P2)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
81 Branch
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: mgaudet, Assigned: mgaudet)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Suppose an initializer throws:
class A extends Base {
#x = "always"
#y = maybeThrows()
static gx(o) { return o.#x };
static gy(o) { return o.#y };
};
This bug is about verifying we understand the precise semantics of the spec, and making sure we add a test to enforce our understanding about partially stamped objects.
Assignee | ||
Comment 1•4 years ago
|
||
DefineField calls the intializer before doing PrivateFieldAdd, so if
an initializer throws, we end up with partially initialized objects.
Updated•4 years ago
|
Assignee: nobody → mgaudet
Status: NEW → ASSIGNED
Updated•4 years ago
|
Severity: -- → N/A
Priority: -- → P2
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7dc21301609c
Test semantics for throwing private field initializers r=yulia
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox81:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•