Change GetOwnPropertyDescriptor to return Maybe<PropertyDescriptor>
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox89 | --- | fixed |
People
(Reporter: evilpies, Assigned: evilpies)
References
Details
Attachments
(6 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Right now we encode "undefined" PropertyDescriptors by setting the JSObject field to null. However that field should not even exists on normal PropertyDescriptor. Instead use Maybe to encode missing/undefined PropertyDescriptors.
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
Depends on D110228
| Assignee | ||
Comment 3•4 years ago
|
||
Depends on D110229
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 5•4 years ago
|
||
Comment 6•4 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 8•4 years ago
|
||
Comment 9•4 years ago
|
||
| bugherder | ||
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 12•4 years ago
|
||
I am not super happy with having to do Rooted<PropertyDescriptor> desc(cx, *desc_); in DebuggerObject::getOwnPropertyDescriptor.
However PropertyDescriptor::value() can't be resolved properly, unlike MutableHandle<PropertyDescriptor>::value().
I wonder if Maybe could return Handle/MutableHandle as well somehow.
Comment 13•4 years ago
|
||
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 14•4 years ago
|
||
I started working on changing the BaseProxyHandler::getOwnPropertyDescriptor. This is going to be a pretty major change, especially in DOM code as well. Let's do it in a new bug.
Comment 15•4 years ago
|
||
| bugherder | ||
Description
•