Closed Bug 1706404 Opened 4 years ago Closed 4 years ago

Change all Get(Own)PropertyDescriptor callers to using Maybe<PropertyDescriptor>

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: evilpies, Assigned: evilpies)

References

Details

Attachments

(7 files)

No description provided.
Severity: -- → N/A
Priority: -- → P3
Keywords: leave-open

I am going to chip away at replacing all callers that don't use the Maybe based API.

Depends on D113017

Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/f506b5e43ace Remove internal non-Maybe GetOwnPropertyDescriptor overload. r=jandem https://hg.mozilla.org/integration/autoland/rev/ef0366119194 Change internal GetPropertyDescriptor to use Maybe and return holder object seperately. r=jandem https://hg.mozilla.org/integration/autoland/rev/4848bc176c9a Add JS_GetOwnPropertyDescriptorById Maybe<PropertyDescriptor> overload. r=jandem
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/5b6120126874 Convert some simple cases to the Maybe<PropertyDescriptor> API. r=smaug

The current defineProperty code sadly uses existing_desc.object() to check
if the property is being defined would shadow an own property.

All of this code is not really something that we should be doing, but I am not even sure how we would replace GetPropertyDescriptor
with GetOwnPropertyDescriptor here.

Depends on D113661

At this point there incremental improvements are getting a lot harder. I am going to open a new bug to completely switch all code away from using object.

Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/b0c0700ce719 BaseDOMProxyHandler::getOwnPropertyDescriptor should return Maybe<PropertyDescriptor>. r=smaug https://hg.mozilla.org/integration/autoland/rev/b50507879a6b Use Maybe<PropertyDescriptor> for JS_GetPropertyDescriptor in js/. r=jandem https://hg.mozilla.org/integration/autoland/rev/5ecbe2eb1d25 Use Maybe<PropertyDescriptor> more in XPConnect. r=smaug
Flags: needinfo?(evilpies)
Keywords: leave-open
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ed6bfacabd45 BaseDOMProxyHandler::getOwnPropertyDescriptor should return Maybe<PropertyDescriptor>. r=smaug https://hg.mozilla.org/integration/autoland/rev/e9316277cf28 Use Maybe<PropertyDescriptor> for JS_GetPropertyDescriptor in js/. r=jandem https://hg.mozilla.org/integration/autoland/rev/aba0c1734f17 Use Maybe<PropertyDescriptor> more in XPConnect. r=smaug
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: