Initial Private Fields Functionality
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: mgaudet, Assigned: mgaudet)
References
Details
Attachments
(5 files, 5 obsolete files)
Thanks to André Bargull we have the initial seeds of a private fields implementation. Almost all of which is in a landable state.
I'm going to use this bug to upload the patches he provided (some of which I have made small tweaks to) and we'll get them landed. After that we can make progress on getting the rest done.
Assignee | ||
Comment 1•5 years ago
|
||
(note: this isn't feature complete, but is a skeleton upon which we will build)
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D74102
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D74103
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D74104
Assignee | ||
Comment 6•5 years ago
|
||
Depends on D74105
Assignee | ||
Comment 7•5 years ago
|
||
Matthew Gaudetu- Added illegal-in-class-context to ensure that field syntax
only works inside of classes if fields are enabled.
Depends on D74106
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D74107
Assignee | ||
Comment 9•5 years ago
|
||
Matthew Gaudet: Add test for double declaration of private name
Depends on D74108
Assignee | ||
Comment 10•5 years ago
|
||
Matthew Gaudet - Added comment
Depends on D74109
Assignee | ||
Comment 11•5 years ago
|
||
Matthew Gaudet: Use NoteUsedName inside of fieldInitializerOpt rather than allocating a new PrivateName node.
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 12•4 years ago
|
||
I'm going to start reworking how this patch stack will land, so I'm resummarying this, and will land parts 1-5 under this. Subsequent parts will come in another bug.
Comment 13•4 years ago
|
||
Comment 14•4 years ago
|
||
Backed out for failures on not-iterable.js
backout: https://hg.mozilla.org/integration/autoland/rev/023c0fdf6679bde4ba0772ff5c060c371e2f268e
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=304723463&repo=autoland&lineNumber=5634
[task 2020-06-02T13:35:14.385Z] 13:35:14 INFO - REFTEST TEST-START | js/src/tests/non262/PrivateName/not-iterable.js
[task 2020-06-02T13:35:14.385Z] 13:35:14 INFO - REFTEST TEST-LOAD | file:///Z:/task_1591104203/build/tests/jsreftest/tests/js/src/tests/jsreftest.html?test=non262/PrivateName/not-iterable.js | 602 / 12479 (4%)
[task 2020-06-02T13:35:14.444Z] 13:35:14 INFO - TEST-INFO | FAILED! TypeError: can't convert symbol to string
[task 2020-06-02T13:35:14.444Z] 13:35:14 INFO - JavaScript error: file:///Z:/task_1591104203/build/tests/jsreftest/tests/js/src/tests/non262/PrivateName/not-iterable.js, line 3: TypeError: can't convert symbol to string
[task 2020-06-02T13:35:14.472Z] 13:35:14 INFO - REFTEST TEST-UNEXPECTED-FAIL | js/src/tests/non262/PrivateName/not-iterable.js | Unknown file:///Z:/task_1591104203/build/tests/jsreftest/tests/js/src/tests/non262/PrivateName/not-iterable.js:3: TypeError: can't convert symbol to string item 1
[task 2020-06-02T13:35:14.473Z] 13:35:14 INFO - REFTEST INFO | Saved log: START file:///Z:/task_1591104203/build/tests/jsreftest/tests/js/src/tests/jsreftest.html?test=non262/PrivateName/not-iterable.js
[task 2020-06-02T13:35:14.473Z] 13:35:14 INFO - REFTEST INFO | Saved log: [CONTENT] OnDocumentLoad triggering AfterOnLoadScripts
Comment 15•4 years ago
|
||
Comment on attachment 9146247 [details]
Bug 1635839 - Part 6: Private fields in non-derived classes. r?jorendorff!,anba!
Revision D74107 was moved to bug 1642476. Setting attachment 9146247 [details] to obsolete.
Comment 16•4 years ago
|
||
Comment on attachment 9146248 [details]
Bug 1635839 - Part 7: Add a separate scope for class body bindings. r?jorendorff
Revision D74108 was moved to bug 1642476. Setting attachment 9146248 [details] to obsolete.
Comment 17•4 years ago
|
||
Comment on attachment 9146249 [details]
Bug 1635839 - Part 8: Install bindings for private names. r?jorendorff!,anba!
Revision D74109 was moved to bug 1642476. Setting attachment 9146249 [details] to obsolete.
Assignee | ||
Updated•4 years ago
|
Comment 18•4 years ago
|
||
Comment 19•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0880c9f68210
https://hg.mozilla.org/mozilla-central/rev/e739f15aeaf8
https://hg.mozilla.org/mozilla-central/rev/2b34ab462221
https://hg.mozilla.org/mozilla-central/rev/851ee4729a31
https://hg.mozilla.org/mozilla-central/rev/480ec262bae2
Description
•